Skip to content

Commit

Permalink
Fix some tests erroring with no args
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding committed Dec 9, 2024
1 parent ab309f0 commit 35aba9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_app/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ def openapi_schema():
return generator.get_schema(request=drf_request)


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

0 comments on commit 35aba9a

Please sign in to comment.