Skip to content

Commit

Permalink
chore(makefile): allow migration & app to be specified in make migrate
Browse files Browse the repository at this point in the history
The migration and appto migrate to can now be specified by setting the
`migration_args` Makefile variable on the command line, e.g. `make migrate
migration_args="general 0013"`.
  • Loading branch information
Restioson committed Nov 7, 2024
1 parent b0a6b80 commit e2ce335
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ make-migrations:
@docker compose run --rm web python manage.py makemigrations

migrate:
@docker compose run --rm web python manage.py migrate
@docker compose run --rm web python manage.py migrate $(migration_args)

collectstatic:
@docker compose run --rm web python manage.py collectstatic --noinput
Expand Down
2 changes: 1 addition & 1 deletion app/general/tests/test_document_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from general.models import Document, Institution


class TestDocumentForm(unittest.TestCase):
class TestDocumentForm(TestCase):
def __init__(self, methodName: str = "runTest"):
super().__init__(methodName)
self.form = None
Expand Down

0 comments on commit e2ce335

Please sign in to comment.