Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate tests in tox.ini and other testing enhancements.
* pyrseas/testutils.py (remove_temp_files): New function to be used by test cases. (DatabaseToMapTestCase.remove_tempfiles): New method. (DbMigrateTestCase.to_map): Use TEST_DIR instead of tempfile.gettempdir(). (DbMigrateTestCase.remove_tempfiles): Refactor code out to remove_temp_files. * tests/dbobject/test_extern_file.py (ExternalFilenameMapTestCase.setUp): Remove temporary files before running tests. * tests/functional/pagila-schema.sql: Remove COMMENT on public schema (caused problems with other tests). * tox.ini: Run all tests (dbobject, functional and relation).
- Loading branch information
Showing
4 changed files
with
29 additions
and
24 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
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
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 |
---|---|---|
|
@@ -59,4 +59,4 @@ deps=pytest | |
setenv = | ||
PYTHONPATH = {toxinidir} | ||
commands = | ||
py.test tests/dbobject | ||
py.test tests |