aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_edit.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'upstream/master' into authRodney Ewing2013-06-251-2/+65
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/app.py mediagoblin/auth/forms.py mediagoblin/auth/tools.py mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/edit/views.py mediagoblin/plugins/basic_auth/tools.py mediagoblin/tests/test_edit.py
| * Removing the "enter your password to change your email" bit.Christopher Allan Webber2013-06-211-38/+0
| | | | | | | | | | | | | | A good idea, though it feels fairly clumsy in the form, and I think if you're logged in you can already sabotage the user pretty well. This commit sponsored by Sergey Matveev. Thanks!
| * added error handling on bad token, fixed route, and added testsRodney Ewing2013-05-241-2/+104
| |
* | added gen_password_hash and check_password functions to auth/__init__Rodney Ewing2013-05-241-3/+3
| |
* | modified test .ini files and changed tests to use basic_auth bcryptRodney Ewing2013-05-241-1/+2
|/
* modified change_pass testsRodney Ewing2013-05-201-7/+10
|
* Reverting "Always activate testing in every test module ever."Christopher Allan Webber2013-05-171-3/+0
| | | | | | Revert "Always activate testing in every test module ever." This reverts commit 0536306048daa0970d2e43411ba2a9bf073e570e.
* Always activate testing in every test module ever.Christopher Allan Webber2013-05-161-0/+3
| | | | Kind of a dorky way to implement this, but...
* Really removing nosetests things now! all assert_whatever removedChristopher Allan Webber2013-04-061-9/+12
|
* Switch test_app generation over to use py.test fixtures.Christopher Allan Webber2013-04-041-17/+20
| | | | | | | | | | | | By doing this, we can take advantage of py.test's ability to create temporary directories that are then cleaned up later during testing. This helps for sandboxing things. This also involves a ton of changes: - Changing the get_app stuff appropriately, getting rid of the setup_fresh_app decorator - Making said fixture - Switching over a billion tests to use it
* All mediagoblin tests now pass with py.test (switched setUp to setup)Christopher Allan Webber2013-04-031-1/+1
|
* 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/