- discover # noqa
This commit is contained in:
parent
42f40792a2
commit
58149cf4d0
|
@ -61,7 +61,7 @@ class NoseSQLAlchemy(Plugin):
|
|||
plugin_base.set_coverage_flag(options.enable_plugin_coverage)
|
||||
|
||||
global fixtures
|
||||
from alembic.testing import fixtures
|
||||
from alembic.testing import fixtures # noqa
|
||||
|
||||
def begin(self):
|
||||
plugin_base.post_begin()
|
||||
|
|
|
@ -173,10 +173,12 @@ def post_begin():
|
|||
global util, fixtures, engines, exclusions, \
|
||||
assertions, warnings, profiling,\
|
||||
config, testing
|
||||
from alembic.testing import config, warnings, exclusions, engines, fixtures
|
||||
from sqlalchemy import util
|
||||
from alembic.testing import config, warnings, exclusions # noqa
|
||||
from alembic.testing import engines, fixtures # noqa
|
||||
from sqlalchemy import util # noqa
|
||||
warnings.setup_filters()
|
||||
|
||||
|
||||
def _log(opt_str, value, parser):
|
||||
global logging
|
||||
if not logging:
|
||||
|
@ -367,8 +369,6 @@ def _prep_testing_database(options, file_config):
|
|||
schema=enum['schema'])))
|
||||
|
||||
|
||||
|
||||
|
||||
@post
|
||||
def _reverse_topological(options, file_config):
|
||||
if options.reversetop:
|
||||
|
@ -383,7 +383,6 @@ def _post_setup_options(opt, file_config):
|
|||
config.file_config = file_config
|
||||
|
||||
|
||||
|
||||
def want_class(cls):
|
||||
if not issubclass(cls, fixtures.TestBase):
|
||||
return False
|
||||
|
|
|
@ -9,7 +9,7 @@ import collections
|
|||
import itertools
|
||||
|
||||
try:
|
||||
import xdist
|
||||
import xdist # noqa
|
||||
has_xdist = True
|
||||
except ImportError:
|
||||
has_xdist = False
|
||||
|
|
Loading…
Reference in New Issue