Skip to content

Commit c95cf34

Browse files
committed
Fix some tests erroring with no args
1 parent 6a1cc19 commit c95cf34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_app/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ def openapi_schema():
4343
return generator.get_schema(request=drf_request)
4444

4545

46-
def test_migrations_okay(apps, app_config, **kwargs):
46+
def test_migrations_okay(apps=None, app_config=None, **kwargs):
4747
"""This test is not about the code, but for verifying your own state.
4848
4949
If you are not migrated to the correct state, this may hopefully alert you.
5050
This is targeted toward situations like switching branches.
5151
"""
52-
if app_config.label != 'test_app':
52+
if (not apps) or (not app_config) or app_config.label != 'test_app':
5353
return # so that it is only ran once
5454
disk_steps = defaultdict(set)
5555
app_exceptions = {'default': 'auth', 'social_auth': 'social_django'}

0 commit comments

Comments
 (0)