Skip to content

Commit

Permalink
Move examples/scale.py into examples/scale/
Browse files Browse the repository at this point in the history
It has a lot of extra files, so moving it for clarity
  • Loading branch information
radiac committed Sep 21, 2024
1 parent 8a63fe3 commit b5b86d8
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ Vagrantfile
examples/*.sqlite3
examples/*migrations*
examples/media
examples/static-collected
examples/scale/*.sqlite3
examples/scale/*migrations*
examples/scale/media
examples/scale/static-collected

# OS-specific
.DS_Store
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
Empty file added examples/static/.gitkeep
Empty file.
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ pip-tools

black
click
gunicorn
isort
django>=3.2.0
django-ninja
django-ninja
uvicorn
whitenoise
2 changes: 1 addition & 1 deletion tests/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .utils import cmd, converted_process, runserver

TEST_APP = "scale"
TEST_SCRIPT = f"examples/{TEST_APP}.py"
TEST_SCRIPT = f"examples/scale/{TEST_APP}.py"
TEST_BIND = "127.0.0.1:8042"


Expand Down
2 changes: 1 addition & 1 deletion tests/test_run_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ def test_run_check__counter_module():


def test_run_check__scale():
result = cmd("manage", "examples/scale.py", "check")
result = cmd("manage", "examples/scale/scale.py", "check")
assert result.stderr.strip() == ""
assert result.stdout.strip() == "System check identified no issues (0 silenced)."
2 changes: 1 addition & 1 deletion tests/test_run_runserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .utils import cmd, nanodjango_process, runserver

TEST_APP = "scale"
TEST_SCRIPT = f"examples/{TEST_APP}.py"
TEST_SCRIPT = f"examples/scale/{TEST_APP}.py"
TEST_BIND = "127.0.0.1:8042"


Expand Down

0 comments on commit b5b86d8

Please sign in to comment.