Skip to content

Commit 2c32403

Browse files
committed
chore(makefile): allow migration & app to be specified in make migrate
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"`.
1 parent d71121d commit 2c32403

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ make-migrations:
5353
@docker compose run --rm web python manage.py makemigrations
5454

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

5858
collectstatic:
5959
@docker compose run --rm web python manage.py collectstatic --noinput

app/general/tests/test_document_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from general.models import Document, Institution
1010

1111

12-
class TestDocumentForm(unittest.TestCase):
12+
class TestDocumentForm(TestCase):
1313
def __init__(self, methodName: str = "runTest"):
1414
super().__init__(methodName)
1515
self.form = None

0 commit comments

Comments
 (0)