/
opt
/
alt
/
python27
/
lib
/
python2.7
/
site-packages
/
alembic
/
testing
/
/opt/alt/python27/lib/python2.7/site-packages/alembic/testing
mkdir
upload
Name
Size
Mode
Actions
plugin/
-
0755
rm
assertions.py
5912
0644
edit
dl
rm
assertions.pyc
8535
0644
edit
dl
rm
assertions.pyo
7665
0644
edit
dl
rm
compat.py
310
0644
edit
dl
rm
compat.pyc
713
0644
edit
dl
rm
compat.pyo
713
0644
edit
dl
rm
config.py
2373
0644
edit
dl
rm
config.pyc
3252
0644
edit
dl
rm
config.pyo
3167
0644
edit
dl
rm
engines.py
766
0644
edit
dl
rm
engines.pyc
905
0644
edit
dl
rm
engines.pyo
905
0644
edit
dl
rm
env.py
7765
0644
edit
dl
rm
env.pyc
9608
0644
edit
dl
rm
env.pyo
9558
0644
edit
dl
rm
exclusions.py
12785
0644
edit
dl
rm
exclusions.pyc
19850
0644
edit
dl
rm
exclusions.pyo
19671
0644
edit
dl
rm
fixtures.py
4519
0644
edit
dl
rm
fixtures.pyc
6680
0644
edit
dl
rm
fixtures.pyo
6514
0644
edit
dl
rm
mock.py
791
0644
edit
dl
rm
mock.pyc
816
0644
edit
dl
rm
mock.pyo
816
0644
edit
dl
rm
provision.py
5058
0644
edit
dl
rm
provision.pyc
8122
0644
edit
dl
rm
provision.pyo
8122
0644
edit
dl
rm
requirements.py
3064
0644
edit
dl
rm
requirements.pyc
7129
0644
edit
dl
rm
requirements.pyo
7129
0644
edit
dl
rm
runner.py
1602
0644
edit
dl
rm
runner.pyc
1871
0644
edit
dl
rm
runner.pyo
1871
0644
edit
dl
rm
util.py
477
0644
edit
dl
rm
util.pyc
823
0644
edit
dl
rm
util.pyo
823
0644
edit
dl
rm
warnings.py
1380
0644
edit
dl
rm
warnings.pyc
1675
0644
edit
dl
rm
warnings.pyo
1606
0644
edit
dl
rm
__init__.py
253
0644
edit
dl
rm
__init__.pyc
603
0644
edit
dl
rm
__init__.pyo
603
0644
edit
dl
rm
Edit:
/opt/alt/python27/lib/python2.7/site-packages/alembic/testing/runner.py
(1602B)
#!/usr/bin/env python # testing/runner.py # Copyright (C) 2005-2014 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ Nose test runner module. This script is a front-end to "nosetests" which installs SQLAlchemy's testing plugin into the local environment. The script is intended to be used by third-party dialects and extensions that run within SQLAlchemy's testing framework. The runner can be invoked via:: python -m alembic.testing.runner The script is then essentially the same as the "nosetests" script, including all of the usual Nose options. The test environment requires that a setup.cfg is locally present including various required options. Note that when using this runner, Nose's "coverage" plugin will not be able to provide coverage for SQLAlchemy itself, since SQLAlchemy is imported into sys.modules before coverage is started. The special script sqla_nose.py is provided as a top-level script which loads the plugin in a special (somewhat hacky) way so that coverage against SQLAlchemy itself is possible. """ from .plugin.noseplugin import NoseSQLAlchemy import nose def main(): nose.main(addplugins=[NoseSQLAlchemy()]) def setup_py_test(): """Runner to use for the 'test_suite' entry of your setup.py. Prevents any name clash shenanigans from the command line argument "test" that the "setup.py test" command sends to nose. """ nose.main(addplugins=[NoseSQLAlchemy()], argv=['runner'])
Save
cmd:
run