aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
Commit message (Collapse)AuthorAgeFilesLines
* Reload and detach the test user.Elrond2012-03-261-0/+7
| | | | | | | | The code often needs to know some fields of the test user even after doing some sql and stuff. The solultion is to reload it and properly detach it from its Session. That way all its fields are available and the whole thing is not connected to a session. It feels like a normal object.
* TestSubission's tag check stuff passing nowChristopher Allan Webber2012-03-261-3/+5
|
* Remove the user_dev directory on tests endingChristopher Allan Webber2012-03-261-7/+7
| | | | (We used to remove the mongo db on tests ending...)
* Suggest we move to an in-memory database ;)Christopher Allan Webber2012-03-261-1/+1
|
* SQL based tests and refactored Celery setup stuffChristopher Allan Webber2012-03-262-16/+16
| | | | | | - Changed config files of test configs to use SQL - Updated celery initialization tools, factored them to be able to use the "big instance" application stuff
* And fix the in-celeryd import.Elrond2012-03-211-1/+1
| | | | So that celeryd also loads the task.
* When media is deleted, delete associated comments too.Brett Smith2012-03-171-0/+15
| | | | | | The actual code is just a simple for loop; there might be a better implementation but this is a fine start. I also extended test_delete to check this too.
* Fix tests given recent celery "case" changeChristopher Allan Webber2012-02-287-16/+16
|
* Merge remote-tracking branch 'cwebber/celerysql'Elrond2012-02-272-48/+9
|\ | | | | | | | | | | | | | | | | | | | | | | * cwebber/celerysql: Adjust unit tests to match new celery/kombu sqlalchemy setup "database" is not the sqlalchemy kombu transport... should be "sqlalchemy" Celery and kombu databases should also be .gitignore'd kombu-sqlalchemy a requirement in order for kombu sqlalchemy transport to work Move mediagoblin dbs out of user_dev for race condition directory-creation reasons. Give kombu its own db. Responding to Elrond "sqlite will lock all the time!" :) Apparently an absolute path is three slashes after sqlite:. Thx elrond. Should be all that's needed to switch celery/kombu settings to sqlalchemy
| * Adjust unit tests to match new celery/kombu sqlalchemy setupChristopher Allan Webber2012-02-262-48/+9
| |
* | Dot-Notation: MediaComment and some random placesElrond2012-02-261-3/+3
|/
* Commenting out the migrations that don't exist yetChristopher Allan Webber2012-02-181-4/+4
|
* Merge branch 'master' into sqlmigrateChristopher Allan Webber2012-02-1820-23/+33
|\ | | | | | | | | Conflicts: mediagoblin/db/sql/models.py
| * Fix copyright statements; add LICENSE for EXIF.pyWill Kahn-Greene2012-02-082-2/+1
| |
| * Fix EXIF based image rotation testElrond2012-02-041-2/+13
| | | | | | | | | | | | | | | | The test checks for a pixel value after rotation (good idea!). But the value seems to be a bit different on some platforms, so use a list of seen values. Not the perfect solution, but it works.
| * It's 2012 all up in hereChristopher Allan Webber2012-02-0219-19/+19
| |
* | Explained why migration #1 commented out.Christopher Allan Webber2012-01-291-0/+3
| |
* | Excepting that migration 1 doesn't work(!), sqlalchemy migration branch workingChristopher Allan Webber2012-01-291-36/+72
| | | | | | | | | | | | | | The reason migration 1 doesn't work, and is commented out, is because of sqlalchemy-migrate not handling certain constraints while dropping binary sqlite columns right. See also: http://code.google.com/p/sqlalchemy-migrate/issues/detail?id=143&thanks=143&ts=1327882242
* | db_conn.engine -> db_conn.bindChristopher Allan Webber2012-01-291-21/+21
| |
* | Migration manager's current migration should be 3, not 7, after running all ↵Christopher Allan Webber2012-01-291-3/+3
| | | | | | | | migrations!
* | Fixed the descriptions for the necroplex!Christopher Allan Webber2012-01-291-2/+2
| |
* | assert column type from Unicode -> VARCHAR. SQLAlchemy reflection only so ↵Christopher Allan Webber2012-01-291-29/+29
| | | | | | | | smart ;)
* | printer = CollectingPrinter -> printer = CollectingPrinter()Christopher Allan Webber2012-01-291-2/+2
| |
* | CollectingPrinter is a class, not a function!Christopher Allan Webber2012-01-291-1/+1
| |
* | magical_powers relationship set on wrong table, fixedChristopher Allan Webber2012-01-291-1/+1
| |
* | Migration records are dicts, not lists. Fix SET1_MIGATIONS!Christopher Allan Webber2012-01-291-1/+1
| |
* | test_set1_to_set3() now has appropriate amount of code, even if it doesn't ↵Christopher Allan Webber2012-01-291-8/+37
| | | | | | | | run :)
* | Fixing some obvious errors caught by pyflakesChristopher Allan Webber2012-01-291-21/+25
| |
* | More stuff even yet per sql migration stuff! And still not ready!Christopher Allan Webber2012-01-291-4/+4
| |
* | Closer to the end of this migration test...Christopher Allan Webber2012-01-291-2/+70
| |
* | unicode stuff and more bits on the actual migration methodChristopher Allan Webber2012-01-291-89/+214
| |
* | A ton more work on the SQL migration unit tests...Christopher Allan Webber2012-01-291-5/+85
| |
* | Wrote up some scaffolding for the actual testsChristopher Allan Webber2012-01-291-3/+53
| |
* | Insert migration objects round 3Christopher Allan Webber2012-01-291-0/+87
| |
* | Wrote some (semi-silly) descriptions of each migrationChristopher Allan Webber2012-01-291-0/+18
| |
* | Docstrings for stage 2 migrationsChristopher Allan Webber2012-01-291-0/+19
| |
* | Theoretical full set of migration2 objects to insert for testingChristopher Allan Webber2012-01-291-1/+76
| |
* | Insert migration1 objects. Also, Level1 id from Integer->UnicodeChristopher Allan Webber2012-01-291-7/+43
| |
* | All theoretical migrations written!Christopher Allan Webber2012-01-291-5/+25
| |
* | binding migration metadata to engine, and level_exits_new_table should now workChristopher Allan Webber2012-01-291-6/+6
| |
* | More test migration work. Closing to working migrations for set 2...Christopher Allan Webber2012-01-291-5/+62
| | | | | | | | Also, this file is written in 2012, correct that ;)
* | Might as well call it "set2 migrations"Christopher Allan Webber2012-01-291-1/+1
| |
* | A theoretical set of models to migrate about with, plus one migration ;)Christopher Allan Webber2012-01-291-0/+177
|/
* Resized a test_exif test image. 1.9M is unnecessarily large.Joar Wandborg2012-01-281-0/+0
|
* Acts on feedback from ChrisJoar Wandborg2012-01-255-0/+207
| | | | | | | - Added EXIF tests - Removed pdb from image processing "ifmain" - Fixed comment typo in image processing - Removed unused import in tools.exif
* Test Suite: Enable attachments, add failing testElrond2012-01-102-0/+17
| | | | | | | | | attachments are an optional part. But it doesn't hurt to enable them in the test suite at all. Also (with enabled attachmemtns) the main media view fails, if one isn't logged in (joar found it!). So add a simple (currently failing) test for this.
* Fix Unit Tests for new password changingElrond2012-01-051-8/+4
|
* Dot-Notation for MediaEntry.stateElrond2012-01-041-2/+2
|
* Fix unit tests for new forget password flowElrond2012-01-011-1/+1
| | | | | | | | After changing the password, the login page is now shown. It contains a message. (we can't test for that easily currently. There is a bug open on this problem.) At least for the login page being shown now.
* Fixed submission error handling and broken testsJoar Wandborg2011-12-311-2/+2
| | | | | | - Fixed broken test_auth test - Fixed error handling on submission, it now raises the exception if it is not explicitly relevant to file submission.