aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
Commit message (Collapse)AuthorAgeFilesLines
* Use UTC for all timesince comparisonsayleph2015-03-121-1/+1
| | | | Signed-off-by: Jessica Tallon <jessica@megworld.co.uk>
* A more reliable test, check against expected keys, rather than receivedChristopher Allan Webber2015-02-211-2/+2
| | | | | | | If we check against expected, if we got more than we expected, that's no problem :) This commit sponsored by Adan Bolte. Thank you!
* Stop looking for exact exif numbersChristopher Allan Webber2015-02-211-2/+2
| | | | | | As the exif library adds data, this keeps breaking, which is silly. Maybe using This commit sponsored by Mikaël Cluseau. Thank you!
* Skip audio tests if scikits.audiolab not installedChristopher Allan Webber2015-02-211-0/+1
|
* Merge remote-tracking branch 'refs/remotes/breton/new_gst10'Christopher Allan Webber2015-02-185-0/+318
|\
| * added tests skipping if there is no proper gstreamerBoris Bobrov2015-02-162-2/+3
| |
| * added a/v submission testingBoris Bobrov2015-02-163-0/+82
| |
| * Port of audio to GStreamer 1.0Boris Bobrov2015-02-161-0/+104
| | | | | | | | | | | | | | Includes: - transcoders - thumbs - tests
| * Porting video to GStreamer 1.0Boris Bobrov2015-02-161-27/+87
| | | | | | | | | | | | | | | | | | | | | | Porting includes: - thumbnailer - transcoder - metadata handling - new common discoverer for media - new tests with in-memory test video generating - handling regardless of audio availability in the file - Pythonic gst pipelines
| * Rewrite thumbnailerBoris Bobrov2015-02-151-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | Previous thumbnailer didn't always work properly. It was also not ready to be ported to GStreamer 1.0 The rewrite makes it shorter, more pythonic and prepares it for porting. - no longer uses playbin2; - is tested - logs some events - previous thumbnailer is removed
* | Remove deprecated oauth 2 pluginJessica Tallon2015-02-153-311/+0
|/
* Fix #1077 - Fix updating comment via API and add testJessica Tallon2014-12-161-0/+37
|
* Fix #1069 - Add deleting images and comments via delete activitiesJessica Tallon2014-12-151-0/+69
|
* Fix #1056 - Add flag to accept URLs without a trailing slashJessica Tallon2014-12-121-6/+6
|
* Fix #1025 - Make API IDs IRIsJessica Tallon2014-11-211-8/+11
|
* Updates per request of moggers87ayleph2014-10-301-16/+13
|
* Unit testsayleph2014-10-301-0/+15
| | | | Added unit tests for lowercasify username on login.
* Fix #984 - Improvements to Activity and ActivityIntermediatorJessica Tallon2014-10-212-3/+82
| | | | | | - Add unit tests to cover get and set methods on Activity - Rewrite the set to remove set and use Session.flush instead - Use sqlalchemy's validator instead of .save hack
* Merge branch 'location'Jessica Tallon2014-10-091-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | Add Location model which holds textual, geolocation coordiantes or postal addresses. This migrates data off Image model metadata onto the general Location model. It also adds the ability for location to be set on MediaEntry, User, MediaComment and Collection models. The geolocation plugin has been updated so that the location can be displayed in more general places rather than explicitely on the MediaEntry view. If GPS coordiantes are set for the User the profile page will also have the OSM provided by the geolocation plugin.
| * Add location model and migrationsJessica Tallon2014-10-091-1/+1
| |
* | Fix typo in client registration API for logo_uriJessica Tallon2014-10-021-4/+4
| |
* | pdf tests: use our own pdf doc as GOOD_PDFAlon Levy2014-09-263-12/+18
| | | | | | | | remove non distributable good.pdf
* | Last two issues related to the python 3 merge tests: fixed!Christopher Allan Webber2014-09-162-10/+15
| | | | | | | | | | | | | | - Fix the "pulling the error out of excinfo" stuff for py3 - The u"" only gets embedded in the string on py2. This commit sponsored by Jeff Gibson. Thanks, Jeff! :)
* | Annnnd another json decode fix for py3! On a roll with these!Christopher Allan Webber2014-09-161-1/+1
| | | | | | | | This commit sponsored by Ramana Kumar. Thanks!
* | Much more nicely formed form error checkChristopher Allan Webber2014-09-161-2/+4
| | | | | | | | | | | | This doesn't rely on checking HTML output... thus, cleaner. This commit sponsored by Alexandre Guédon. Thank you!
* | Fix error check in test_edit.py for python 3Christopher Allan Webber2014-09-161-1/+1
| | | | | | | | | | This isn't the nicest of checks... we should probably be checking the actual form passed into the context. But for now, it's a fix.
* | Fix exception catching on python 3Christopher Allan Webber2014-09-161-2/+2
| | | | | | | | This commit sponsored by Paul Smith. Thank you!
* | 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
| |