aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'transcoding_progress'Boris Bobrov2018-07-123-3/+215
|\ | | | | | | This probably broke stuff
| * Fixes for small bugsBoris Bobrov2018-07-122-3/+9
| | | | | | | | | | There were some blocking issues in the code. They are small, but break tests and/or production. Fixed some of them.
| * Change complimentary_task to complementary_tasvijeth-aradhya2017-08-291-4/+4
| | | | | | | | Closes #11
| * Create a seperate test for get_all_mediavijeth-aradhya2017-08-171-3/+24
| |
| * Add test for get_all_media()vijeth-aradhya2017-08-161-1/+20
| | | | | | | | Check for it's returned values.
| * Merge branch 'master' into 'multiple-qualities-frontend'Vijeth Aradhya2017-08-141-22/+0
| |\ | | | | | | | | | | | | Add multiple video qualities feature See merge request !2
| * | Fix test_accepted_resolutionsvijeth-aradhya2017-06-271-6/+7
| | | | | | | | | | | | Add {'webm': (640, 640)}
| * | Test whether video is transcoded to all resolutionsvijeth-aradhya2017-06-251-3/+11
| | | | | | | | | | | | | | | | | | After `self.check_normal_upload`, query the database and check whether the video got transcoded to all the required resolutions.
| * | Test accepted_files and accepted_resolutionsvijeth-aradhya2017-06-252-1/+22
| | |
| * | Add test_chord for TestSubmissionVideovijeth-aradhya2017-06-251-8/+74
| | | | | | | | | | | | | | | Testing the arguments passed to celery.chord when a video is submitted.
| * | Add VideoProcessingManager.workflow() testsvijeth-aradhya2017-06-251-0/+69
| | | | | | | | | | | | Testing workflow method including its return data.
| * | Fix test_celery_setup errorvijeth-aradhya2017-06-171-2/+3
| | | | | | | | | | | | Add mediagoblin.media_types.video.processing as a task module.
* | | Merge remote-tracking branch 'gsoc2016/Subtitle-1'Boris Bobrov2018-07-101-0/+68
|\ \ \
| * | | Tests for handling customize interface exceptionsaksham11152016-08-131-2/+19
| | | |
| * | | Added basic tests for the subtitle pluginsaksham11152016-08-121-0/+51
| | | |
* | | | Added tests for tags in image API objectRomain Porte2017-11-121-0/+14
| | | |
* | | | Improved gitignores for patch submittingRomain Porte2017-11-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | In order to ease the patch submitting process, *.patch was added as per Linux kernel's .gitignore. Test cache directory was also added in its own gitignore (as per kernel's recommendation on .gitignore location).
* | | | Fixed flake8 errors for tests/test_api.pyRomain Porte2017-11-111-16/+30
| | | | | | | | | | | | | | | | | | | | | | | | Since I am adding a test I also took time to fix all flake8 errors in this test file, since I may add more tests in there and I prefer to work on a coherent code base.
* | | | Added tests for custom file name using APIRomain Porte2017-11-111-2/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a new test and verify that the old test has the "unknown.<extension>" format. As funny as it seems, the "image/jpeg" Content-Type will generate a ".jpe" extension but I was expecting a more common ".jpg" extension. This may be a bug, but this is not the subject of this patch.
* | | | Fix trivial spelling error in test commentAndrew Browning2017-10-231-1/+1
| | | |
* | | | Support Unicode characters in configuration valuesSimen Heggestøyl2017-10-162-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this commit, using a Unicode character in a configuration string would result in a `UnicodeDecodeError` being raised. Supporting Unicode characters is especially useful in user-facing configuration strings, such as `html_title`.
* | | | Add unit test for #5524Andrew Browning2017-09-203-1/+17
| |_|/ |/| | | | | | | | | | | | | | | | | | | | Add a unit test to verify that the change introduced in 07c535c no longer resulst in a zero divide error when gps data contains no divisor. This commit includes a test image created by Andrew Browning. Andrew Browning dedicates this image to the public domain under the CC0 license.
* | | Remove mongodb-related stuffBoris Bobrov2017-06-181-22/+0
| |/ |/| | | | | We dropped mongodb a long time ago
* | Fix tests to reflect that we've moved to amqpBoris Bobrov2017-06-101-4/+1
| |
* | Extend Paginator tests to satisfy #55.Ben Sturmfels2016-09-161-7/+33
| |
* | Add Python 3 support in pagination.Ben Sturmfels2016-09-161-0/+31
| | | | | | | | This issue was visible when attempting to view the home page of a MediaGoblin site with more than a single page worth of items, under Python 3.
* | Merge branch 'fix-unhelpful-smtp-error-5081'Boris Bobrov2016-07-251-0/+29
|\ \
| * | squash! Custom exception in mail.Jonathan Sandoval2016-04-081-0/+4
| | |
| * | Mail tests with no mail server configured.Jonathan Sandoval2016-04-081-0/+25
| |/
* | Tests for short and long usernames.Jonathan Sandoval2016-04-071-9/+11
| |
* | Test with short and long usernameJonathan Sandoval2016-04-071-1/+45
|/
* tests: Fix migration tests; foundations are now installed separatelyChristopher Allan Webber2016-03-291-29/+9
| | | | | | | * mediagoblin/tests/test_sql_migrations.py: Import migration.changeset even in python 3. (FOUNDATIONS): Removed. (test_set1_to_set3): Removed foundations checks.
* tests: importorskip migration tests on "migrate" rather than on Python 3Christopher Allan Webber2016-03-291-1/+1
| | | | | | | | | Previously we assumed we wouldn't run migration tests if we're on Python 3, but now that we support sqlalchemy-migrate with Python 3, switch to checking based on "migrate" importability. * mediagoblin/tests/test_sql_migrations.py: Update test skipping to rely on "migrate" module presence rather than Python 3 check.
* Add comment questioning why run_dbupdate is needed in get_app test utilityChristopher Allan Webber2016-03-261-0/+2
| | | | * mediagoblin/tests/tools.py (get_app): Add comment
* Remove requirement that audio/video dependencies must be installed for testsChristopher Allan Webber2016-03-185-64/+210
| | | | | | | Some tests were added for running audio and video submission tests in test_submission.py. Unfortunately these were not skipped if these dependencies were not installed. This patch attempts to fix that while leaving the tests intact.
* Fix #5376 - Ensure links have correct IDJessica Tallon2016-03-012-4/+4
| | | | | | | This ensures that links to comments have the correct ID (the ID of the Comment object) as well as fixing deletion on reports and fixing a few other little things. I hope this fixes the #5376 issue, though cannot reproduce so unable to confirm.
* Fix #5415 - Deleted comments get removed properly when tombstonesJessica Tallon2016-02-291-0/+31
| | | | | | The original wrapper existed and should be been removed, this fix now ensures the TextComment removes the Comment wrapper to prevent the deleted (comments which are tombstones) existing.
* 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
|