Commit graph

302 commits

Author SHA1 Message Date
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
25f8a2cefd Introduce a small delay between functional tests, to allow CTRL-C abort 2013-09-12 19:56:12 +01:00
sneakypete81
35b9a4d044 Add upload/replace from URL. 2013-09-12 18:26:51 +01:00
sneakypete81
f1a9018918 Remove unused imports 2013-09-12 17:54:42 +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
dc03fd2dfc Truncate response logging to 1000 characters 2013-09-11 18:08:06 +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
7a7b43afc7 Renamed <object>._trovebox to <object>._client, to match API classes.
Changed _type to a class attribute.
2013-09-09 18:08:11 +01:00
sneakypete81
3cfc090dd0 Pylint fixes 2013-09-08 17:27:58 +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
adecf7aad0 Updated docstrings 2013-09-07 11:19:15 +01:00
sneakypete81
7afb709531 Update docstrings 2013-09-07 10:49:14 +01:00
sneakypete81
3e4fdf6dd6 Docstring updates 2013-09-07 09:42:29 +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
sneakypete81
e8806426ce Use DDT to simplify http_error testcases 2013-09-06 18:20:03 +01:00
sneakypete81
c39c4f3d8c Add support for activity list filters 2013-09-05 22:51:32 +01:00
sneakypete81
0f6cbd58e0 Create API base class 2013-09-02 22:00:15 +01:00
sneakypete81
6293a81d39 Fix action/create endpoint. 2013-09-02 21:19:34 +01:00
sneakypete81
17e73f9666 Merge branch 'sneakypete81-test_fixes' into development 2013-09-02 19:43:20 +01:00
sneakypete81
05bea95774 Merge branch 'sneakypete81-coverage' into development 2013-09-02 19:40:37 +01:00
sneakypete81
016792b653 Updated functional tests to run Actions and Activities on all API versions 2013-09-01 18:52:42 +01:00
sneakypete81
ba503bea6b Whitespace trim 2013-09-01 18:35:28 +01:00
sneakypete81
13331efe0d Updated functional tests to use new configuration format when specifying API version 2013-09-01 18:11:00 +01:00
sneakypete81
ec648ea753 Added HTTPS functional tests 2013-09-01 18:10:24 +01:00
sneakypete81
7159b8b2c0 Remove coverage badge until master branch is on coveralls.io 2013-09-01 14:16:12 +01:00
Pete
9b148beeed Add coverage badge for upstream master branch 2013-09-01 13:33:26 +01:00
Pete
380d54c091 Run coverage as part of test suite. Travis-CI reports coverage results to coveralls.io. 2013-09-01 13:23:12 +01:00
Pete
6b03e906d4 Merge branch 'development' into coverage 2013-09-01 13:09:58 +01:00
Pete
037a492deb Merge branch 'sneakypete81-more_endpoints' into development 2013-09-01 13:04:38 +01:00
Pete
ca72a30772 Add new sub-packages to setup.py. Don't install README.rst. 2013-09-01 12:45:48 +01:00
Pete
ba4515ded6 Add coverage.py configuration 2013-08-29 14:37:58 -07:00
Pete
f6186d2dbd Add additional tests for http class 2013-08-29 14:37:33 -07:00
Pete
121ce12e69 Added additional tests for verbosity switch 2013-08-29 14:36:57 -07:00
Pete
431e8fcc8a Fix object repr functions 2013-08-29 14:23:09 -07:00
Pete
f742df27b4 Add coverage ignore pragmas 2013-08-26 12:57:47 -07:00