Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reload and detach the test user. | Elrond | 2012-03-26 | 1 | -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 now | Christopher Allan Webber | 2012-03-26 | 1 | -3/+5 |
| | |||||
* | Remove the user_dev directory on tests ending | Christopher Allan Webber | 2012-03-26 | 1 | -7/+7 |
| | | | | (We used to remove the mongo db on tests ending...) | ||||
* | Suggest we move to an in-memory database ;) | Christopher Allan Webber | 2012-03-26 | 1 | -1/+1 |
| | |||||
* | SQL based tests and refactored Celery setup stuff | Christopher Allan Webber | 2012-03-26 | 2 | -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. | Elrond | 2012-03-21 | 1 | -1/+1 |
| | | | | So that celeryd also loads the task. | ||||
* | When media is deleted, delete associated comments too. | Brett Smith | 2012-03-17 | 1 | -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" change | Christopher Allan Webber | 2012-02-28 | 7 | -16/+16 |
| | |||||
* | Merge remote-tracking branch 'cwebber/celerysql' | Elrond | 2012-02-27 | 2 | -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 setup | Christopher Allan Webber | 2012-02-26 | 2 | -48/+9 |
| | | |||||
* | | Dot-Notation: MediaComment and some random places | Elrond | 2012-02-26 | 1 | -3/+3 |
|/ | |||||
* | Commenting out the migrations that don't exist yet | Christopher Allan Webber | 2012-02-18 | 1 | -4/+4 |
| | |||||
* | Merge branch 'master' into sqlmigrate | Christopher Allan Webber | 2012-02-18 | 20 | -23/+33 |
|\ | | | | | | | | | Conflicts: mediagoblin/db/sql/models.py | ||||
| * | Fix copyright statements; add LICENSE for EXIF.py | Will Kahn-Greene | 2012-02-08 | 2 | -2/+1 |
| | | |||||
| * | Fix EXIF based image rotation test | Elrond | 2012-02-04 | 1 | -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 here | Christopher Allan Webber | 2012-02-02 | 19 | -19/+19 |
| | | |||||
* | | Explained why migration #1 commented out. | Christopher Allan Webber | 2012-01-29 | 1 | -0/+3 |
| | | |||||
* | | Excepting that migration 1 doesn't work(!), sqlalchemy migration branch working | Christopher Allan Webber | 2012-01-29 | 1 | -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.bind | Christopher Allan Webber | 2012-01-29 | 1 | -21/+21 |
| | | |||||
* | | Migration manager's current migration should be 3, not 7, after running all ↵ | Christopher Allan Webber | 2012-01-29 | 1 | -3/+3 |
| | | | | | | | | migrations! | ||||
* | | Fixed the descriptions for the necroplex! | Christopher Allan Webber | 2012-01-29 | 1 | -2/+2 |
| | | |||||
* | | assert column type from Unicode -> VARCHAR. SQLAlchemy reflection only so ↵ | Christopher Allan Webber | 2012-01-29 | 1 | -29/+29 |
| | | | | | | | | smart ;) | ||||
* | | printer = CollectingPrinter -> printer = CollectingPrinter() | Christopher Allan Webber | 2012-01-29 | 1 | -2/+2 |
| | | |||||
* | | CollectingPrinter is a class, not a function! | Christopher Allan Webber | 2012-01-29 | 1 | -1/+1 |
| | | |||||
* | | magical_powers relationship set on wrong table, fixed | Christopher Allan Webber | 2012-01-29 | 1 | -1/+1 |
| | | |||||
* | | Migration records are dicts, not lists. Fix SET1_MIGATIONS! | Christopher Allan Webber | 2012-01-29 | 1 | -1/+1 |
| | | |||||
* | | test_set1_to_set3() now has appropriate amount of code, even if it doesn't ↵ | Christopher Allan Webber | 2012-01-29 | 1 | -8/+37 |
| | | | | | | | | run :) | ||||
* | | Fixing some obvious errors caught by pyflakes | Christopher Allan Webber | 2012-01-29 | 1 | -21/+25 |
| | | |||||
* | | More stuff even yet per sql migration stuff! And still not ready! | Christopher Allan Webber | 2012-01-29 | 1 | -4/+4 |
| | | |||||
* | | Closer to the end of this migration test... | Christopher Allan Webber | 2012-01-29 | 1 | -2/+70 |
| | | |||||
* | | unicode stuff and more bits on the actual migration method | Christopher Allan Webber | 2012-01-29 | 1 | -89/+214 |
| | | |||||
* | | A ton more work on the SQL migration unit tests... | Christopher Allan Webber | 2012-01-29 | 1 | -5/+85 |
| | | |||||
* | | Wrote up some scaffolding for the actual tests | Christopher Allan Webber | 2012-01-29 | 1 | -3/+53 |
| | | |||||
* | | Insert migration objects round 3 | Christopher Allan Webber | 2012-01-29 | 1 | -0/+87 |
| | | |||||
* | | Wrote some (semi-silly) descriptions of each migration | Christopher Allan Webber | 2012-01-29 | 1 | -0/+18 |
| | | |||||
* | | Docstrings for stage 2 migrations | Christopher Allan Webber | 2012-01-29 | 1 | -0/+19 |
| | | |||||
* | | Theoretical full set of migration2 objects to insert for testing | Christopher Allan Webber | 2012-01-29 | 1 | -1/+76 |
| | | |||||
* | | Insert migration1 objects. Also, Level1 id from Integer->Unicode | Christopher Allan Webber | 2012-01-29 | 1 | -7/+43 |
| | | |||||
* | | All theoretical migrations written! | Christopher Allan Webber | 2012-01-29 | 1 | -5/+25 |
| | | |||||
* | | binding migration metadata to engine, and level_exits_new_table should now work | Christopher Allan Webber | 2012-01-29 | 1 | -6/+6 |
| | | |||||
* | | More test migration work. Closing to working migrations for set 2... | Christopher Allan Webber | 2012-01-29 | 1 | -5/+62 |
| | | | | | | | | Also, this file is written in 2012, correct that ;) | ||||
* | | Might as well call it "set2 migrations" | Christopher Allan Webber | 2012-01-29 | 1 | -1/+1 |
| | | |||||
* | | A theoretical set of models to migrate about with, plus one migration ;) | Christopher Allan Webber | 2012-01-29 | 1 | -0/+177 |
|/ | |||||
* | Resized a test_exif test image. 1.9M is unnecessarily large. | Joar Wandborg | 2012-01-28 | 1 | -0/+0 |
| | |||||
* | Acts on feedback from Chris | Joar Wandborg | 2012-01-25 | 5 | -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 test | Elrond | 2012-01-10 | 2 | -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 changing | Elrond | 2012-01-05 | 1 | -8/+4 |
| | |||||
* | Dot-Notation for MediaEntry.state | Elrond | 2012-01-04 | 1 | -2/+2 |
| | |||||
* | Fix unit tests for new forget password flow | Elrond | 2012-01-01 | 1 | -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 tests | Joar Wandborg | 2011-12-31 | 1 | -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. |