Skip to content

Commit

Permalink
style: pycodestyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zawan-ila committed Dec 10, 2024
1 parent 731fad6 commit e46220b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
'RefreshCourseMetadataCommandTests',
'course_discovery/apps/course_metadata/tests/test_admin.py::ProgramAdminFunctionalTests']

# Recent versions of pytest-xdist change the order of test execution such that TransactionTestCases may
# Recent versions of pytest-xdist change the order of test execution such that TransactionTestCases may
# be run before TestCases. Since TransactionTestCase based tests do not restore the data created
# in data migrations during cleanup, this can cause TestCases which rely on that data to fail.
# pytest-xdist has an open issue for this regression at `https://github.com/pytest-dev/pytest-xdist/issues/1083`
Expand Down Expand Up @@ -132,5 +132,6 @@ def clear_es_indexes():
for index_name in settings.ELASTICSEARCH_INDEX_NAMES.values():
conn.indices.delete(index=index_name + '_*')


def pytest_xdist_make_scheduler(config, log):
return LoadScopeSchedulingDjangoOrdered(config, log)
return LoadScopeSchedulingDjangoOrdered(config, log)

0 comments on commit e46220b

Please sign in to comment.