Skip to content

Commit 35aba9a

Browse files
committed
Fix some tests erroring with no args
1 parent ab309f0 commit 35aba9a

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
@@ -37,13 +37,13 @@ def openapi_schema():
3737
return generator.get_schema(request=drf_request)
3838

3939

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

0 commit comments

Comments
 (0)