aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
Commit message (Collapse)AuthorAgeFilesLines
* Apply pyupgrade --py36-plus.Ben Sturmfels2021-09-239-36/+36
| | | | This removes some 'u' prefixes and converts simple format() calls to f-strings.
* Remove unneeded shebang from test_processing.py.Elisei Roca2021-09-201-2/+0
| | | | Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
* Remove Mozilla Persona plugin [#5512].jgart2021-04-232-263/+0
| | | | | | Mozilla persona is RIP since 2016. Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
* Fix tests on Debian 11.Ben Sturmfels2021-04-041-2/+11
|
* Convert atom feeds to use feedgenerator library.Ben Sturmfels2021-03-161-0/+19
| | | | | | | | | | | | | | | Issue is that Werkzeug > 1.0.0 has removed werkzeug.contrib.atom.AtomFeed, making it difficult to use a distribution-packaged version of werkzeug. To solve this, I've replaced use of werkzeug.contrib.atom.AtomFeed with feedgenerator.Atom1Feed. After the change, the only major difference between the feeds before and after is that they use <summary> instead of <content>. Minor differences include no longer adding 'type="text/html"' on some <link> elements and no "xml:base" attribute on <entry> elements. I don't think these differences will have any noticable effect. Tested on Liferea feed reader.
* Run LDAP, OpenID and PDF tests under Docker.Ben Sturmfels2021-03-091-0/+0
|
* More robust test fix.Ben Sturmfels2021-03-061-2/+2
|
* Fix broken metadata editing test.Ben Sturmfels2021-03-061-1/+1
|
* Remove remaining Python 2 compatibility code.Ben Sturmfels2021-03-051-5/+0
|
* Remove remaining imports/calls to six not automatically removed by pyupgrade.Ben Sturmfels2021-03-0515-45/+20
|
* Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.Ben Sturmfels2021-03-0532-674/+669
|
* Reinstate audio spectrograms on Python 3 [#5610].Fernando Gutierrez2021-03-031-1/+0
| | | | | | | | The `audiotospectrogram` module is a complete rewrite of the existing spectrogram code with support for Python 3. This allows us to drop the bundled `freesound` library and Python 2-only `audioprocessing` and `spectrogram` modules. Signed-off-by: Ben Sturmfels <ben@sturm.com.au>
* Fix dependencies and tests for clean Python 2 & 3 test runs under Docker.Ben Sturmfels2020-04-282-6/+4
| | | | | This change gives a clean test run in the Debian-based Python 2 and Python 3 docker images.
* 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.