aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_basic_auth.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove remaining imports/calls to six not automatically removed by pyupgrade.Ben Sturmfels2021-03-051-1/+1
|
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-051-6/+6
|
* Fix some unit tests and bugsJessica Tallon2015-08-241-2/+2
| | | | | | | | | | | | | | | | | | 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-3/+3
| | | | | | | 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.
* Use six.moves.urllib.parse instead of the urlparse module.Berker Peksag2014-05-261-1/+2
|
* Fixing the test_change_password test. Needed a privilege!Christopher Allan Webber2013-10-081-1/+3
| | | | | | I'm pretty sure this should work correctly now. This commit sponsored by Michał Masłowski. Thanks!
* fixed some typos and missed importsRodney Ewing2013-08-161-1/+1
|
* moved change_pass to basic_auth and fixed some typos with the moving of ↵Rodney Ewing2013-08-161-0/+42
| | | | forgot pass
* renamed lib to toolsRodney Ewing2013-05-271-10/+10
|
* moving forgot_password views back to gmg/auth and cleanupRodney Ewing2013-05-241-107/+0
|
* added tests for no_auth featureRodney Ewing2013-05-241-2/+2
|
* existing test all passing nowRodney Ewing2013-05-241-0/+166