aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Switch test_app generation over to use py.test fixtures.Christopher Allan Webber2013-04-041-36/+0
| | | | | | | | | | | | By doing this, we can take advantage of py.test's ability to create temporary directories that are then cleaned up later during testing. This helps for sandboxing things. This also involves a ton of changes: - Changing the get_app stuff appropriately, getting rid of the setup_fresh_app decorator - Making said fixture - Switching over a billion tests to use it
* Rename get_test_app to get_app.Elrond2013-01-181-5/+5
| | | | | | | nosetests runs everything that even vaguely looks like a test case... even our get_test_app. And as it is imported everywhere... it is run everywhere as a test case. Renaming it saves us about 10+ tests and a few seconds of time.
* Don't get a fresh app when not neededSebastian Spaeth2013-01-081-8/+6
| | | | | | | | These tests, don't need fresh databases, so don't discard and recreate the tables. This reduces test suite runtime on my laptop from 130 to 96 seconds. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Move db.sql.models* to db.models*Sebastian Spaeth2013-01-071-1/+1
|
* Fix up testsSebastian Spaeth2012-12-211-5/+5
| | | | | | | | | | | | empty find() queries would not work anymore with the simplified .find compatability code, so remove these and use proper sqlalchemy in the tests. The storage test failed because my virtualenv environment ran mediagoblin/local/mediagoblin/tests/test_storage.py and somehow decided the 2 classes are different objects. Just test against the full class name. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* Dot-Notation for Users.pw_hashElrond2011-12-051-1/+1
|
* Dot-Notation for Users.emailElrond2011-12-051-1/+1
|
* Dot-Notation for Users.usernameElrond2011-12-051-1/+1
|
* 508. Updates copyright/license informationWill Kahn-Greene2011-09-011-1/+1
|
* mediagoblin.globals->mediagoblin.mg_globalsChristopher Allan Webber2011-06-121-5/+5
|
* Make sure that get_test_app() really does wipe the databaseChristopher Allan Webber2011-06-051-0/+38