aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
Commit message (Collapse)AuthorAgeFilesLines
* json.loads(request.body) => json.loads(response.body.decode()))Christopher Allan Webber2014-09-162-8/+8
| | | | | | This fixes python 3 stuff. This commit sponsored by James Reilly. Thanks, James!
* Import mock correctly on py3Christopher Allan Webber2014-09-161-1/+4
| | | | This commit sponsored by Andrew McNicol. Thank you!
* Fix test_legacy_api.pyChristopher Allan Webber2014-09-161-5/+6
| | | | | | | Or rather, reimplement one of Berker's fixes and add one of mine: - add back the http_auth_headers fix Berker wrote - decode to json when testing the response.body, since we have no idea what the order will be here
* Import mock from unittest if on py3Christopher Allan Webber2014-09-161-1/+4
|
* Merge branch 'master' into merge-python3-portChristopher Allan Webber2014-09-1612-73/+795
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Has some issues, will iteratively fix! Conflicts: mediagoblin/gmg_commands/__init__.py mediagoblin/gmg_commands/deletemedia.py mediagoblin/gmg_commands/users.py mediagoblin/oauth/views.py mediagoblin/plugins/api/views.py mediagoblin/tests/test_api.py mediagoblin/tests/test_edit.py mediagoblin/tests/test_oauth1.py mediagoblin/tests/test_util.py mediagoblin/tools/mail.py mediagoblin/webfinger/views.py setup.py
| * Tidy up federation code and add tests to cover more of the APIsJessica Tallon2014-08-183-30/+93
| |
| * Forgot to add starttls_config.iniJessica Tallon2014-08-121-0/+4
| |
| * Fix #861 - Add unit test and documentation for email_smtp_force_starttlsJessica Tallon2014-08-121-0/+27
| |
| * Add more security checks when updating objects and testsJessica Tallon2014-08-041-15/+92
| |
| * Fix some security concerns regrding inpersonation in federation code.Jessica Tallon2014-07-311-0/+80
| |
| * Fix #927 - Clean up federation code after Elrond's reviewJessica Tallon2014-07-302-36/+48
| | | | | | | | | | | | | | | | - Add json_error and use inplace of json_response where appropriate. - Add garbage_collection to config spec file. - Fix bugs in both garbage collection task and test - Handle /api/whoami when no user logged in and a test for such a case. - Validate ID is correct and user has comment privilege to comment.
| * Fix #923 - add allow_admin to user_has_privilege decoratorJessica Tallon2014-07-291-10/+7
| |
| * Switch from slug to ID and clean up style to conform to PEP-8Jessica Tallon2014-07-221-8/+16
| |
| * Create test for garbage collectionJessica Tallon2014-07-221-4/+37
| |
| * Add test for API object endpointJessica Tallon2014-07-221-0/+29
| |
| * Add more tests for federation APIsJessica Tallon2014-07-222-92/+143
| |
| * Require uploader privileges to upload media to APIJessica Tallon2014-07-222-24/+28
| |
| * Remove unneeded oauth fixtures and add test for image submissionJessica Tallon2014-07-221-38/+80
| |
| * Rename test_joarapi.py => test_legacy_api.pyJessica Tallon2014-07-221-1/+2
| |
| * Add fixtures to provide OAuth client, request and access modelsJessica Tallon2014-07-221-1/+63
| |
| * Adds the unit-tests for API and cleans up APIxray72242014-07-222-65/+134
| |
| * Wrapping things to not exceed column 80 in test_ldapChristopher Allan Webber2014-07-101-6/+12
| |
| * Added some tests for metadata.tilly-Q2014-05-142-28/+81
| |
| * Wrote a test for the compact_and_validate metadata function.tilly-Q2014-05-131-0/+103
| |
* | Fix another tests.Berker Peksag2014-08-0710-31/+25
| | | | | | | | (forgot to commit earlier)
* | mbox_message.get_payload() returns bytestring.Berker Peksag2014-08-041-2/+2
| |
* | Skip test_sql_migrations on Python 3 for now.Berker Peksag2014-07-281-3/+7
| |
* | Remove an usage of deprecated cgi.parse_qs().Berker Peksag2014-07-281-3/+1
| |
* | Remove paste.server dependency from tests.Berker Peksag2014-07-181-28/+6
| |
* | Fix tests on Python 3.Berker Peksag2014-07-1413-42/+77
| |
* | Use new-style classes. The old-style classes are deprecated in Python 3.Berker Peksag2014-06-081-2/+2
| |
* | Fix an usage of file().Berker Peksag2014-06-081-1/+1
| |
* | The file() builtin has been removed in Python 3. Use open() instead.Berker Peksag2014-06-072-9/+9
| |
* | Use six.text_type instead of unicode().Berker Peksag2014-06-0210-14/+29
| | | | | | | | I will be switch to use ``from __future__ import unicode_literals`` later.
* | Use six.moves.urllib.parse instead of the urlparse module.Berker Peksag2014-05-266-6/+14
| |
* | Use six.iteritems() instead of dict.iteritems().Berker Peksag2014-05-262-3/+6
|/
* Issue #686: Create User.url_for_self() method.Berker Peksag2014-04-102-0/+65
| | | | | *Note from cwebber on merge of this branch:* Thanks also to Sturm who provided an early version of this patch.
* EXIF returns less data than it used to...Christopher Allan Webber2014-03-261-1/+1
|
* The default failures are just way too verbose. Quieting them down a bit.Christopher Allan Webber2014-03-111-0/+1
| | | | This commit sponsored by Chad Glendenin. Thanks!
* added new slugify with unidecodeBoris Bobrov2014-03-111-0/+6
|
* robogoblins.xcfChristopher Allan Webber2014-02-091-2/+3
|
* robogoblins sourceChristopher Allan Webber2014-02-092-3/+5
|
* updated COPYING file for current data in this directoryChristopher Allan Webber2014-02-092-61/+56
|
* Source files for some of the test submission artwork.Christopher Allan Webber2014-02-066-0/+439
|
* 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!
* Fixing issues in the tests caused by the OPW-Moderation-Update mergeChristopher Allan Webber2013-10-081-45/+17
| | | | | | | | | Not that branch's fault! Just both that branch and master had both done a lot of changes to overlapping code. self.test_user switched to self.our_user(). Updating everywhere. This commit sponsored by Sam Kleinman. Thank you! :)
* Merge remote-tracking branch 'refs/remotes/tilly-q/OPW-Moderation-Update'Christopher Allan Webber2013-10-0713-56/+760
|\ | | | | | | | | | | | | Conflicts: mediagoblin/templates/mediagoblin/user_pages/user.html mediagoblin/tests/test_auth.py mediagoblin/tests/test_submission.py
| * This commit was solely to remove unused imports in the code that I have writtentilly-Q2013-09-234-9/+4
| |
| * At this point, I am very close to done with this code! I made one big change attilly-Q2013-09-234-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | paroneayea's request, which was to make to possible to turn off user's ability to file reports through a mediagoblin.ini setting. Aside from this, I had to make it possible for the Moderation User Panel to display more than 10 users. And aside from that, I just had to fix some errors which cropped up with my most recent additions. I also fixed some tests that were broken because I had changed the checks for whether or not a user is active. Nearing the end! =============================================================================== Made it possible to turn off reports through a mediagoblin.ini setting =============================================================================== --\ mediagoblin.ini --\ mediagoblin/config_spec.ini --\ mediagoblin/decorators.py --\ mediagoblin/moderation/views.py --\ mediagoblin/templates/mediagoblin/user_pages/media.html --\ mediagoblin/user_pages/views.py =============================================================================== Made User Panel capable of showing more than 1 page of users =============================================================================== --\ mediagoblin/moderation/forms.py --\ mediagoblin/moderation/views.py --\ mediagoblin/templates/mediagoblin/moderation/user_panel.html =============================================================================== Fixed Broken Tests =============================================================================== --\ mediagoblin/tests/test_notifications.py --\ mediagoblin/tests/test_openid.py --\ mediagoblin/tests/test_persona.py --\ mediagoblin/tests/test_reporting.py =============================================================================== Fixed errors in code =============================================================================== --\ mediagoblin/db/migrations.py --| Set nullable to True for MediaReports' and CommentReports' content foreign |keys --\ mediagoblin/db/models.py --| Got rid of cascading rules for MediaReports' and CommentReports' content |foreign keys. This makes it possible for the Reports to continue to exist |after the content is deleted. --\ mediagoblin/moderation/tools.py --| Fixed formatting of Report Resolution Methods --| Took out pieces of code used in debugging --\ mediagoblin/templates/mediagoblin/base.html --\ mediagoblin/templates/mediagoblin/moderation/report.html --| Made reports details page able to tell what is a deleted archived report. --\ mediagoblin/templates/mediagoblin/moderation/report_panel.html --\ mediagoblin/templates/mediagoblin/utils/report.html
| * Merge branch 'master' into OPW-Moderation-Updatetilly-Q2013-09-122-4/+57
| |\ | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py