aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_edit.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Introduce user_deletion test.Sebastian Spaeth2013-01-171-0/+18
| | | | | | | | Delete a user via web interface and see if it works. TODO: this does not test that related entries are also cleaned up and we should extend the test to do so. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Improve and extend profile editing testsSebastian Spaeth2013-01-091-76/+97
| | | | | | | | | | | | | | | | | | We only ever ran the password changing test here, and not the half-existing test for changing the bio and homepage. Fix the tests to actually run both tests. We check that setting bio and homepage to a valid value works as expected. We also test for invalid bio (too long) and invalid URLs setting fails. (which is what we want). - Check that the old /edit/profile/ address redirects to /u/USER/edit/. - Check that /u/USER/edit/ works as expected - Check that /u/OTHERUSER/edit/ fails with a 403 Forbidden error when we are not logged in as that user. The last remaining test that would be useful is to make a user an admin and make sure the admin can edit other users' profiles. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* Prevent SQLAlchemy non-Unicode warnings in this test.Brett Smith2012-07-081-4/+4
|
* These are changes for issue #405, add email comment notification.Derek Moore2012-03-151-0/+1
|
* It's 2012 all up in hereChristopher Allan Webber2012-02-021-1/+1
|
* Fix Unit Tests for new password changingElrond2012-01-051-8/+4
|
* Dot-Notation: tests/test_edit.pyElrond2011-12-051-4/+4
| | | | | convert tests/test_edit.py over to Dot-Notation. It only accesses the User object.
* fixture_add_user: Factoring a unit test toolElrond2011-12-011-17/+4
| | | | | | | Some unit tests need a user in the database, especially to act as that user. Some routines did that on their own. So factored this whole thing into a new function and use it around.
* added unittests, now using form errors and fixed bug when no GET parameter ↵Jakob Kramer2011-11-201-0/+112
is given for /edit/profile/