aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix some unit tests and bugsJessica Tallon2015-08-241-1/+1
| | | | | | | | | | | | | | | | | | This fixes a lot of the issues with the LocalUser changes that were merged recently. There was a problem where the attributes of LocalUser were not being eagerly loaded and because the Session was detached an exception was being raised when they were accessed. This also fixes some typo's which were introduced. Finally this adds a temporary fix for a potential SQLAlchemy bug, this is a bug where doing: User.query.filter(LocalUser.username == "some_username").first() does NOT yeild a user with the username "some_username" but all users on the site. The temp fix is to just query the LocalUser, this should be resolved when bug is confirmed and fixed upstream.
* Change codebase to query or create correct User modelJessica Tallon2015-07-311-2/+2
| | | | | | | The code base had many references to User.username and other specific to LocalUser attributes as that was the way it use to exist. This updates those to query on the generic User model but filtering by attributes on the LocalUser.
* Issue #686: Create User.url_for_self() method.Berker Peksag2014-04-101-0/+41
| | | | | *Note from cwebber on merge of this branch:* Thanks also to Sturm who provided an early version of this patch.
* Moving test_user_dev->user_dev in plugin app configs & adding plugin static ↵Christopher Allan Webber2013-05-231-12/+0
| | | | | | | | | | | | | | | | serving The test_user_dev (as opposed to user_dev) was a legacy before we had each application running in its own directory (as they now do in pytest). Move that name to just user_dev... this is more consistent with the rest of our naming and will make writing these config files easier. (If we want to test that changing these still works, that should be a separate unit test with special config files.) Additionally, add plugin static serving to the common test paste config file. This commit sponsored by Juan Jose Marin Martinez. Thank you!
* Tests should no longer use the environment-variable-related-setup and set up ↵Christopher Allan Webber2013-05-121-3/+1
| | | | | | | | | in app instead This should remove a bunch of confusing cruft. I hate using that environment variable! Also that old code was fragile. This commit sponsored by Stephen Milton. Thanks!
* Testsuite: Turn SQLAlchemy warnings into errorsElrond2012-12-231-0/+4
| | | | | | | | | | We should handle SQLAlchemy warnings. And to make that a lot easier, turn them into real errors. That way they 1) Turn up more prominently. 2) Have a useful backtrace. This only happens in the testsuite, so that normal useage is not impacted.
* Remove the user_dev directory on tests endingChristopher Allan Webber2012-03-261-7/+7
| | | | (We used to remove the mongo db on tests ending...)
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* 508. Updates copyright/license informationWill Kahn-Greene2011-09-011-1/+1
|
* Extra checks so that we don't even RUN tests unless the right celery environ setChristopher Allan Webber2011-06-211-2/+4
|
* Make sure we *ONLY* ever kill the test database, EVER.Christopher Allan Webber2011-06-211-4/+7
|
* Only kill the database if it's really set up.Christopher Allan Webber2011-06-181-3/+4
|
* mediagoblin.globals->mediagoblin.mg_globalsChristopher Allan Webber2011-06-121-2/+2
|
* Tests: Kill the whole testing database after all testsElrond2011-06-101-0/+11
| | | | | | nose allows setup and teardown functions at the package level. So use this to drop the complete database after all tests have finished.
* Changes Mediagoblin -> MediaGoblin.Will Kahn-Greene2011-04-131-1/+1
|
* Adds license/copyright header.Will Kahn-Greene2011-04-121-0/+15
|
* Unit tests for our bcrypt auth stuff. Our first tests!Christopher Allan Webber2011-04-021-0/+0