RETIRED, further work has moved to Debian project infrastructure
Go to file
Mike Bayer d3676e25be - 0.8.8 2016-09-12 18:20:49 -04:00
alembic The imports in the default script.py.mako are now at the top 2016-09-12 18:12:55 -04:00
docs/build - 0.8.8 2016-09-12 18:20:49 -04:00
tests Include DateTime.timezone in autogen type comparisons 2016-08-22 17:50:35 -04:00
.coveragerc - coverage was not working (and needs to be fixed in SQLAlchemy too), 2014-09-14 15:51:19 -04:00
.gitignore - squash merge of ticket_302 branch 2015-07-03 13:10:41 -04:00
.gitreview Add .gitreview 2016-06-17 10:42:24 -04:00
CHANGES Fix doclink away from readthedocs 2016-07-17 18:29:14 -07:00
LICENSE - happy new year 2016-01-29 11:27:00 -05:00
MANIFEST.in fix manifest 2014-11-24 15:20:59 -05:00
README.rst - now at alembic.zzzcomputing.com 2016-06-17 23:48:05 -04:00
README.unittests.rst - test runner updates 2014-11-24 15:16:38 -05:00
reap_oracle_dbs.py - updates from SQLA 1.1 for improved concurrency 2016-03-03 09:14:55 -05:00
run_tests.py - coverage was not working (and needs to be fixed in SQLAlchemy too), 2014-09-14 15:51:19 -04:00
setup.cfg - update tox for new SQLA 1.1 style 2016-03-03 09:05:03 -05:00
setup.py - dont need pytest-cov for setup.py test 2016-03-10 16:51:00 -05:00
tox.ini - don't use dropfirst if -n is used. on CI the dropfirst is 2016-04-24 14:41:38 -04:00

README.unittests.rst

Running Unit Tests

Tests can be run be run using via py.test, via the nose front-end script, or the Python setup.py script:

py.test

python run_tests.py

python setup.py test

There's also a tox.ini file with several configurations:

tox

Setting up Optional Databases

The test suite will attempt to run a subset of tests against various database backends, including Postgresql and MySQL. It uses the database URLs in the [db] section of setup.cfg to locate a URL for particular backend types. If the URL cannot be loaded, either because the requisite DBAPI is not present, or if the target database is found to be not accessible, the test is skipped.

To run tests for these backends, replace URLs with working ones inside the setup.cfg file. Setting a URL here requires that the corresponding DBAPI is installed as well as that the target database is running. A connection to the database should provide access to a blank schema, where tables will be created and dropped. It is critical that this schema have no tables in it already.

For Postgresql, it is also necessary that the target database contain a user-accessible schema called "test_schema".