Commit graph

166 commits

Author SHA1 Message Date
sneakypete81
b96df0a188 Hosted site's Month/Year tags are no longer deletable
https://github.com/photo/frontend/issues/1468
2014-04-12 21:49:40 +01:00
sneakypete81
f536a4ef29 Merge branch 'sneakypete81-unicode_tags' into development 2014-02-02 20:55:58 +00:00
sneakypete81
1f4b79c545 Merge branch 'sneakypete81-unicode_params' into development 2014-02-02 20:54:56 +00:00
sneakypete81
ab17b26dff Merge branch 'sneakypete81-unicode_repr' into development 2014-02-02 20:53:47 +00:00
sneakypete81
566f897ace Add unicode support for the options parameter 2014-02-02 20:38:11 +00:00
sneakypete81
d43c8fb379 Ensure tag update/delete URLs are UTF-8 encoded 2014-02-01 19:08:14 +00:00
sneakypete81
f05878d90f Fix repr unicode handling
Python2 requires utf-8 encoded bytestring
Python3 requires unicode string
2014-01-31 19:34:01 +00:00
sneakypete81
43f533a419 Ensure lists inside parameters are UTF-8 encoded
Recurse properly into embedded lists
Ensure all parameter contents are UTF-8 encoded
2014-01-31 18:57:33 +00:00
sneakypete81
d6d84f4e0b Add tests for unicode filename uploads 2013-12-19 18:50:12 +00:00
sneakypete81
7e889ee3b0 Ensure uploaded filename is correct 2013-12-19 18:49:25 +00:00
sneakypete81
8bbb38df92 Merge branch 'sneakypete81-cli_user_expansion' into development 2013-12-08 16:22:01 +00:00
sneakypete81
b7fe17656b Perform user expansion when uploading files from the CLI.
Don't ignore missing files - allow an exception to be raised.
Add extra CLI file upload unit tests.
2013-12-07 17:05:28 +00:00
sneakypete81
98ef2ce941 Skip the photo.delete_source test, since it doesn't work if the photos are cached 2013-12-07 16:04:58 +00:00
sneakypete81
d35aac58b4 Merge branch 'even_more_endpoints_fixed' of git://github.com/sneakypete81/openphoto-python into sneakypete81-even_more_endpoints_fixed 2013-11-03 13:00:21 +00:00
sneakypete81
ea1fcc8d0f Merge pull request #63 from sneakypete81/pylint-patcher
Pylint patcher
2013-11-03 04:48:40 -08:00
sneakypete81
17169b02d8 Merge pull request #64 from sneakypete81/next_previous_test_fix
Update test_next_previous to use "dateTaken,asc" sorting
2013-11-03 04:48:02 -08:00
sneakypete81
8f488365c9 Add system.version functional test 2013-11-03 12:40:33 +00:00
sneakypete81
c4f152fcc9 Don't delete/update TroveboxObject attributes that start with an underscore 2013-11-03 12:40:24 +00:00
sneakypete81
1ba21353f9 Don't raise an exception if an object's attribute starts with an underscore,
just ignore it.
2013-11-03 12:39:53 +00:00
sneakypete81
be7463518b Update httpretty to 0.6.5
(but no further due to https://github.com/gabrielfalcao/HTTPretty/issues/114)
2013-11-03 12:38:48 +00:00
sneakypete81
09203ff2b8 Added system endpoints 2013-11-03 12:37:31 +00:00
sneakypete81
3a6305b453 Update test_next_previous to use "dateTaken,asc" sorting 2013-10-30 19:33:45 +00:00
sneakypete81
096389bdfc Merge branch 'master' into development 2013-10-29 20:48:51 +00:00
sneakypete81
99d0a8066b Update httpretty to 0.6.5
(but no further due to https://github.com/gabrielfalcao/HTTPretty/issues/114)
2013-10-29 09:18:21 +00:00
sneakypete81
ebaf3bc036 Remove photo dynamic_url, since this is marked as "internal" in the frontend code 2013-09-15 11:28:40 +01:00
sneakypete81
3a13d13c42 Added photo next_previous option argument.
Moved options_string slash to the start of the string.
2013-09-15 08:50:26 +01:00
sneakypete81
aeb06c0d8b Added photo view options parameter
Renamed "filter" parameters to "option"
2013-09-15 08:25:51 +01:00
sneakypete81
5ccc03a835 Add testcases for updating with empty attributes 2013-09-14 12:18:38 +01:00
sneakypete81
8a4a806f8d Fixed typo in test definition 2013-09-14 12:00:28 +01:00
sneakypete81
00efc91ef9 Use pathOriginal for upload/delete tests.
Hosted site returns 403 not 404 for a missing source photo.
2013-09-14 11:53:11 +01:00
sneakypete81
379f332932 Remove APIv1 test server from functional tests.
There are too many exceptions required, and this is now very old.
2013-09-14 11:52:17 +01:00
sneakypete81
9721fb28bc Use requests to download photos, to prevent URL problems during API version testing 2013-09-12 19:56:54 +01:00
sneakypete81
35b9a4d044 Add upload/replace from URL. 2013-09-12 18:26:51 +01:00
sneakypete81
c635c7c0c0 Add photo replace endpoints 2013-09-12 17:53:16 +01:00
sneakypete81
3da64a59cc Add photo.delete_source endpoint 2013-09-11 18:15:55 +01:00
sneakypete81
bf437ffc7e Don't explicitly raise a TroveboxError if False is returned,
rely on frontend to issue an error code.

This also means we don't need to test for this in unit tests.
2013-09-11 17:47:09 +01:00
sneakypete81
6b3f010920 Added photos/share endpoint (currently not implemented in frontend) 2013-09-11 17:27:21 +01:00
sneakypete81
e904a629f9 Add photo list filters 2013-09-10 18:22:31 +01:00
sneakypete81
76f27a7dbb Try to put the test environment back the way we found it,
to save teardown/setup time.
2013-09-10 18:04:49 +01:00
sneakypete81
d2e621935a Skip newer album tests with APIv1 2013-09-10 17:52:56 +01:00
sneakypete81
86ba0914c8 Refactor the smarts into the api classes.
The object classes are now simple wrappers.
Improve parameter testing, by passing foo="bar" where possible.
2013-09-10 17:45:53 +01:00
sneakypete81
f8aecde457 Added album add/remove endpoints 2013-09-08 17:22:25 +01:00
sneakypete81
3bd733b229 Added album cover update endpoint 2013-09-08 12:07:27 +01:00
sneakypete81
3eb2cba180 Skip all activity tests in V1, since activities never get deleted in this version.
This makes it too hard to test.
2013-09-07 11:58:36 +01:00
sneakypete81
4441fecc6f Merge branch 'development' into even_more_endpoints 2013-09-07 11:44:40 +01:00
sneakypete81
ba9ef81ac8 Put the album.photos attribute back, since this is used for album.view when includeElements=True. 2013-09-07 11:44:03 +01:00
sneakypete81
a4add97f59 Remove all endpoints that return forms. 2013-09-07 11:30:27 +01:00
sneakypete81
8c8c0e6bd5 Merge branch 'development' into even_more_endpoints 2013-09-07 09:13:04 +01:00
sneakypete81
c598a68017 Finished activities/purge test, fails due to frontend/#1368 2013-09-07 09:12:55 +01:00
sneakypete81
533c2661b1 Ensure HTTP errors raise exceptions even when response processing is disabled 2013-09-06 18:21:21 +01:00