aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Change Notification.object_id to be ID of Comemnt not TextCommentJessica Tallon2016-02-291-3/+3
| | | | | | | | This shouldn't really effect much but it is a needed change for the future this changes the Notification.object_id to be the ID of the Comment (the link table to the comment object) rather than TextComment (the comment object itself). This is needed as now comments can be other things, other than TextComment.
* Oops, I forgot to include test_mgoblin_app_pdf.iniChristopher Allan Webber2016-02-241-0/+20
|
* Switch from Paste for serving to WaitressChristopher Allan Webber2016-02-191-1/+1
| | | | | Incredibly, it looks like none of our documentation has to change taking this route...!
* Fixing one more bytes vs string battle in Python 3Christopher Allan Webber2016-02-111-2/+2
|
* #5416: Fix tests using the FileObjectAwareFileChristopher Allan Webber2016-02-111-7/+7
|
* Fix #5079 - tags unicity is on the slug, not the nameLoic Dachary2016-02-061-0/+4
| | | | | Signed-off-by: Loic Dachary <loic@dachary.org> Signed-off-by: Andrew Browning <ayleph@thisshitistemp.com>
* Issue #5349: Submission tests fail confusingly on missing dependencyChristopher Allan Webber2016-02-041-0/+21
| | | | | They gave a DetachedInstanceError, despite being totally unrelated to anything in database-land!
* Fix #5408 - ignore non-int offset in api feedLoic Dachary2016-01-251-2/+44
| | | | | | | | | In the same fashion limit=BAD fallsback to the default value, fallback to zero when offset=WORSE. Also add test coverage verifying limit/offset do the right thing. Signed-off-by: Loic Dachary <loic@dachary.org>
* Fix #1096 - allow - in usernamesLoic Dachary2016-01-211-2/+24
| | | | Signed-off-by: Loic Dachary <loic@dachary.org>
* trac#5397: Allow decode_request to parse content-type headers with extra ↵Ben Sturmfels2016-01-211-0/+61
| | | | | | options. It previously parsed "Content-Type: application/x-www-form-urlencoded", but not "Content-Type: application/x-www-form-urlencoded; charset=utf-8".
* Fix #1099 - remove x mode from ini fileLoic Dachary2016-01-191-0/+0
| | | | Signed-off-by: Loic Dachary <loic@dachary.org>
* Add test to check that an activity is created when a collection was chosen.tom2016-01-071-4/+11
|
* Add collection drop down to submit page.tom2016-01-071-1/+59
|
* Fix issue #5372: test_comment_notification fails with werkzeug 0.11 or newerChristopher Allan Webber2015-12-101-4/+18
| | | | | | | | | | Formerly like: chris commented on your post (​http://localhost:80/u/otherperson/m/some-title/c/1/#comment) at GNU MediaGoblin With werkzeug 0.11.0 or higher: chris commented on your post (​http://localhost/u/otherperson/m/some-title/c/1/#comment) at GNU MediaGoblin Easy enough just to be flexible.
* Added test for #5356 - Read someone else's feedJessica Tallon2015-11-241-2/+35
| | | | | | This adds a test and improves a previous test for the ability to read someone elses feed. Previously it was not possible however this has since been patched and this test checks for that.
* trac#687: Add unit tests for `redirect` and `redirect_obj`.Ben Sturmfels2015-11-051-0/+65
|
* trac#665: Upgrade to WebTest 2.0.18 and fix broken test `test_csrf_cookie_set`.Ben Sturmfels2015-11-051-2/+2
| | | | | | | | Test was failing due to API change in WebTest around accessing cookies set in the test client. These are now in `test_app.cookies`. While there are currently 48 other tests failing, I've verified that before and after this change that the same number fail. I've also checked that no other tests use the old API for accessing test client cookies. I've pinned to version 2.0.18. My understanding is that it's generally a good idea to pin to a specific version where possible to avoid the "why has this suddenly broken" type bugs. This also seems appropriate since WebTest appears to be very stable.
* Comment changes for federationJessica Tallon2015-10-207-94/+108
| | | | | | | | | | | | | | This adds a new Comment link table that is used to link between some object and then the comment object, which can be more or less any object in Mediagoblin. The MediaComment has been renamed to TextComment as that more aptly describes what it is. There is migrations for these changes. There is also the conslidation of the Report tables into a single Report table, the same with the Notification objects. This is because both of them split out MediaEntry and Comment versions into their own polymorphic versions from a base, this is no longer a meaningful distinction as comments can be anything.
* Add public_id fixes throughout the codeJessica Tallon2015-10-071-0/+10
| | | | | | | | This adds several things, mainly code which checks for the public id and if it doesn't exist generating it where it can. This is to because we need to keep the public_id to be able to effectively soft delete models. This also adds a public_id field to the Activity along with a migration.
* Collection changes and migration for federationJessica Tallon2015-10-077-20/+24
| | | | | | | - Adds a "type" column to the Collection object and allows the CollectionItem model to contain any object. - Changes "items" to "num_items" as per TODO - Renames "uploader", "creator" and "user" to a common "actor" in most places
* Fix bugs with the exifread library updateJessica Tallon2015-10-071-2/+4
| | | | | | | | | | | - As of version 2.1.2 of exifread the 90 CW and 90 CCW values were swapped, this bug is now fixed however our test data had those values swapped too. I have fixed that. - I also noticed that I had different orientation values, this was noticed and fixed for some other differing values in commit ccca39f1 when it was decided we'll add values which were noticed on different platforms.
* Fix some unit tests and bugsJessica Tallon2015-08-2413-35/+38
| | | | | | | | | | | | | | | | | | 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-3113-53/+64
| | | | | | | 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.
* Fix some problems with activity mixins and migrationsJessica Tallon2015-05-261-52/+0
|
* 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.