Christopher Allan Webber
207f0f95a9
A more reliable test, check against expected keys, rather than received
...
If we check against expected, if we got more than we expected, that's
no problem :)
This commit sponsored by Adan Bolte. Thank you!
2015-02-21 15:35:30 -06:00
Christopher Allan Webber
42e5b2c8ae
Stop looking for exact exif numbers
...
As the exif library adds data, this keeps breaking, which is silly. Maybe using
This commit sponsored by Mikaël Cluseau. Thank you!
2015-02-21 15:07:51 -06:00
Christopher Allan Webber
1965e8dd84
Skip audio tests if scikits.audiolab not installed
2015-02-21 14:55:17 -06:00
Christopher Allan Webber
dbc383d483
Merge remote-tracking branch 'refs/remotes/breton/new_gst10'
2015-02-18 15:22:52 -06:00
Boris Bobrov
fd365db43a
added tests skipping if there is no proper gstreamer
2015-02-16 13:41:09 +03:00
Boris Bobrov
c41705bffc
added a/v submission testing
2015-02-16 13:41:09 +03:00
Boris Bobrov
57d8212a79
Port of audio to GStreamer 1.0
...
Includes:
- transcoders
- thumbs
- tests
2015-02-16 13:41:04 +03:00
Boris Bobrov
91f5f5e791
Porting video to GStreamer 1.0
...
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
2015-02-16 05:35:36 +03:00
Jessica Tallon
247c987cf7
Remove deprecated oauth 2 plugin
2015-02-15 17:17:01 +01:00
Boris Bobrov
7e266d5a37
Rewrite thumbnailer
...
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
2015-02-15 05:52:22 +03:00
Jessica Tallon
9e715bb07f
Fix #1077 - Fix updating comment via API and add test
2014-12-16 12:05:18 +00:00
Jessica Tallon
4dec1cd695
Fix #1069 - Add deleting images and comments via delete activities
2014-12-15 11:18:30 +00:00
Jessica Tallon
c7c26b1740
Fix #1056 - Add flag to accept URLs without a trailing slash
2014-12-12 14:33:15 +00:00
Jessica Tallon
9c602458d8
Fix #1025 - Make API IDs IRIs
2014-11-21 13:30:31 +00:00
ayleph
8cf9d64328
Updates per request of moggers87
2014-10-30 11:34:23 -05:00
ayleph
c7236fd0da
Unit tests
...
Added unit tests for lowercasify username on login.
2014-10-30 11:34:23 -05:00
Jessica Tallon
5ddc85e071
Fix #984 - Improvements to Activity and ActivityIntermediator
...
- 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
2014-10-21 11:44:11 +01:00
Jessica Tallon
ed48454558
Merge branch 'location'
...
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.
2014-10-09 19:20:13 +01:00
Jessica Tallon
c0434db469
Add location model and migrations
2014-10-09 19:16:54 +01:00
Jessica Tallon
670cdef79c
Fix typo in client registration API for logo_uri
2014-10-02 20:34:25 +01:00
Alon Levy
becd160703
pdf tests: use our own pdf doc as GOOD_PDF
...
remove non distributable good.pdf
2014-09-26 09:31:12 -05:00
Christopher Allan Webber
6430ae97ec
Last two issues related to the python 3 merge tests: fixed!
...
- 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! :)
2014-09-16 17:39:53 -05:00
Christopher Allan Webber
1db2bd3fe7
Annnnd another json decode fix for py3! On a roll with these!
...
This commit sponsored by Ramana Kumar. Thanks!
2014-09-16 15:35:23 -05:00
Christopher Allan Webber
dd41141d23
Much more nicely formed form error check
...
This doesn't rely on checking HTML output... thus, cleaner.
This commit sponsored by Alexandre Guédon. Thank you!
2014-09-16 15:25:30 -05:00
Christopher Allan Webber
16450dada2
Fix error check in test_edit.py for python 3
...
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.
2014-09-16 15:15:13 -05:00
Christopher Allan Webber
7893d43a8f
Fix exception catching on python 3
...
This commit sponsored by Paul Smith. Thank you!
2014-09-16 15:08:28 -05:00
Christopher Allan Webber
21cbf8294e
json.loads(request.body) => json.loads(response.body.decode()))
...
This fixes python 3 stuff.
This commit sponsored by James Reilly. Thanks, James!
2014-09-16 14:56:13 -05:00
Christopher Allan Webber
fa3f46d714
Import mock correctly on py3
...
This commit sponsored by Andrew McNicol. Thank you!
2014-09-16 14:46:02 -05:00
Christopher Allan Webber
58a7292fed
Fix test_legacy_api.py
...
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
2014-09-16 14:37:36 -05:00
Christopher Allan Webber
3a02813c7a
Import mock from unittest if on py3
2014-09-16 14:26:40 -05:00
Christopher Allan Webber
f6bad0eb26
Merge branch 'master' into merge-python3-port
...
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
2014-09-16 14:01:43 -05:00
Jessica Tallon
9246a6ba89
Tidy up federation code and add tests to cover more of the APIs
2014-08-18 10:51:32 -05:00
Jessica Tallon
8cfa4071bf
Forgot to add starttls_config.ini
2014-08-12 21:47:23 +01:00
Jessica Tallon
7ffd4cf4b5
Fix #861 - Add unit test and documentation for email_smtp_force_starttls
2014-08-12 19:23:19 +01:00
Berker Peksag
cda3055bd6
Fix another tests.
...
(forgot to commit earlier)
2014-08-07 13:08:42 +03:00
Berker Peksag
a7e1d8829f
mbox_message.get_payload() returns bytestring.
2014-08-04 22:08:23 +03:00
Jessica Tallon
8d75091de2
Add more security checks when updating objects and tests
2014-08-04 20:02:18 +01:00
Jessica Tallon
8917ffb1e7
Fix some security concerns regrding inpersonation in federation code.
2014-07-31 20:33:04 +01:00
Jessica Tallon
5e5d445890
Fix #927 - Clean up federation code after Elrond's review
...
- 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.
2014-07-30 21:53:52 +01:00
Jessica Tallon
7bfc81b21a
Fix #923 - add allow_admin to user_has_privilege decorator
2014-07-29 20:29:02 +01:00
Berker Peksag
88ed537a9e
Skip test_sql_migrations on Python 3 for now.
2014-07-28 13:22:42 +03:00
Berker Peksag
fe6f82be23
Remove an usage of deprecated cgi.parse_qs().
2014-07-28 12:54:59 +03:00
Jessica Tallon
a14d90c2db
Switch from slug to ID and clean up style to conform to PEP-8
2014-07-22 23:13:17 +01:00
Jessica Tallon
8ac7a653d9
Create test for garbage collection
2014-07-22 23:13:16 +01:00
Jessica Tallon
3c8bd177b2
Add test for API object endpoint
2014-07-22 23:13:16 +01:00
Jessica Tallon
51ab51921e
Add more tests for federation APIs
2014-07-22 23:13:16 +01:00
Jessica Tallon
967df5eff0
Require uploader privileges to upload media to API
2014-07-22 23:13:16 +01:00
Jessica Tallon
ee9956c3de
Remove unneeded oauth fixtures and add test for image submission
2014-07-22 23:13:16 +01:00
Jessica Tallon
c9115b89c9
Rename test_joarapi.py => test_legacy_api.py
2014-07-22 23:13:16 +01:00
Jessica Tallon
f751d346cf
Add fixtures to provide OAuth client, request and access models
2014-07-22 23:13:16 +01:00