-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes flake8, where we use "binary operator after line breaks". Closes #670.
- Loading branch information
Showing
22 changed files
with
1,413 additions
and
1,042 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
# This file cannot be imported from until Django sets up | ||
try: | ||
# Django 1.11 | ||
from django.test.utils import setup_databases, teardown_databases # noqa | ||
from django.test.utils import setup_databases, teardown_databases # noqa: F401 | ||
except ImportError: | ||
# In Django prior to 1.11, teardown_databases is only available as a method on DiscoverRunner | ||
from django.test.runner import setup_databases, DiscoverRunner as _DiscoverRunner # noqa | ||
from django.test.runner import ( # noqa: F401 | ||
setup_databases, | ||
DiscoverRunner as _DiscoverRunner, | ||
) | ||
|
||
def teardown_databases(db_cfg, verbosity): | ||
(_DiscoverRunner(verbosity=verbosity, | ||
interactive=False) | ||
.teardown_databases(db_cfg)) | ||
_DiscoverRunner(verbosity=verbosity, interactive=False).teardown_databases( | ||
db_cfg | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.