aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_misc.py
Commit message (Collapse)AuthorAgeFilesLines
* Really removing nosetests things now! all assert_whatever removedChristopher Allan Webber2013-04-061-9/+7
|
* Switch test_app generation over to use py.test fixtures.Christopher Allan Webber2013-04-041-8/+4
| | | | | | | | | | | | 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
* These tests need to have a MediaGoblin app setup so they can connect to the db!Christopher Allan Webber2013-04-031-0/+2
| | | | Thanks to py.test --boxed for helping discover that ;)
* Fix deleting media with attachments.Elrond2013-02-181-0/+15
| | | | | | | | | | | | | | If one deletes a media with attachments, there have been various problems: 1) If the file in the storage did not exist any more (maybe because due to a previous deletion attempt?), the error propagation failed, because the wrong thing was gathered. 2) The attachment database entries were not deleted. Using cascade for this, for now. Also add a simple unit test, that tests both by having a broken attachment on a media.
* Improve runtime of one test.Elrond2013-01-291-4/+10
| | | | Do not commit so often. flushing is enough.
* Failing testcase for issue 611.Elrond2013-01-291-1/+51
| | | | | | | | | | This currently fails (with foreign key constrain error): 1. Have user A and B. 2. User B creates media M. 3. User A post a comment on M. 4. User A deletes his own account. The test is a little bit wider.
* Rename get_test_app to get_app.Elrond2013-01-181-2/+2
| | | | | | | 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.
* tests: More instances where a fresh database is not neededSebastian Spaeth2013-01-081-7/+5
| | | | Save test runtime by not dumping the databases when not needed.
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* Bug #685: Add failing unit testElrond2011-12-031-0/+26
The simplest way to reproduce Bug #685 is to ask for a non existent page. This should return a proper 404. It currently doesn't. So add a unit test exactly for this. This unit test fails currently! It will fail until the bug gets fixed.