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