Commit graph

166 commits

Author SHA1 Message Date
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
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
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
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
a97851b82a Add tests for invalid return types 2013-08-26 12:46:20 -07:00
Pete
2237d43854 Add tests for cli help and parameter verbosity 2013-08-26 12:27:54 -07:00
Pete
c18e590cc2 Test that all types of empty lists are retuned as [] 2013-08-26 12:09:33 -07:00
Pete
ae4295ee4e Add testcase for tag create endpoint 2013-08-26 11:50:24 -07:00
Pete
ade2fac3cb Add testcase for partially populated config files 2013-08-26 11:50:07 -07:00
Pete
5a0065a873 Fix typo 2013-08-26 11:20:38 -07:00
Pete
707eb270ee Add activity endpoint support 2013-08-19 18:12:29 +01:00
Pete
55778dcd83 Add support for Action API
Currently doesn't seem to work - server always returns an error
2013-08-19 16:12:10 +01:00
Pete
fd5389e0d7 Moved trovebox.api and trovebox.objects into packages 2013-08-19 14:05:01 +01:00
sneakypete81
ec163eb4d4 Add DDT support to test_http, to reduce duplication 2013-08-16 17:46:30 +01:00
sneakypete81
5ad540e177 Added configure method
Added support for disabling HTTPS SSL verification
2013-08-16 08:10:33 +01:00
sneakypete81
d7b74dc1da Rename config to auth 2013-08-14 08:24:18 +01:00
Pete
9a2c3e0d97 Added support for https URLs. Fixes #51. 2013-08-12 17:31:07 +01:00
sneakypete81
6f70330994 Renamed OpenPhoto to Trovebox 2013-07-19 17:46:30 +01:00
sneakypete81
57b593d245 Add v3.0.8 functional test instance to server list 2013-07-19 17:01:12 +01:00
sneakypete81
a8bde4a438 Add version option to CLI. 2013-07-06 11:38:32 +01:00
sneakypete81
b4861e4332 Fix a couple of unit tests 2013-06-30 18:25:05 +01:00
sneakypete81
639836c248 object.add/remove_photos should accept photos list as first parameter
(even though it's not implemented yet)
2013-06-30 18:17:48 +01:00
sneakypete81
a23dbb36c5 Remove invalid comment 2013-06-30 18:16:09 +01:00
sneakypete81
33c700a3cd Ensure album cover is updated to a Photo object during Album() initialisation 2013-06-30 18:15:28 +01:00
sneakypete81
4c6b41dbc3 Don't test the tag/create endpoint, as it is redundant and will be removed.
See #38 for details.
2013-06-30 18:10:15 +01:00
sneakypete81
971bab4f7b Status code mismatches are actually quite common.
Rather than raise an exception, just ensure we return the JSON code.
2013-06-30 18:04:36 +01:00
sneakypete81
413cf297a3 Replace_encoded parameter should be called photo_file, not encoded_photo 2013-06-30 17:40:25 +01:00
sneakypete81
5656221147 After deleting an object's fields, name and id should be set to None 2013-06-30 17:39:02 +01:00
sneakypete81
9968d7f265 Delete methods should raise exception on failure, rather than returning False 2013-06-30 17:34:41 +01:00
sneakypete81
3f1757d0aa photos.update/update now also accept a list of Photo objects 2013-06-30 17:30:25 +01:00
sneakypete81
280521cf4a Mismatch between response status and JSON code raises an exception 2013-06-30 17:21:20 +01:00
sneakypete81
921410d8f8 404 status should raise 404 error, even if JSON is valid. 2013-06-30 17:17:03 +01:00
sneakypete81
56d376d50e Added tox instructions 2013-06-30 17:08:54 +01:00
sneakypete81
a54ec01254 Updated functional test instructions 2013-06-30 17:05:50 +01:00
sneakypete81
6387877e48 Monkey-patch httpretty for Python3 support
This fix is in the httpretty codebase, but not yet released
2013-06-29 20:25:29 +01:00
sneakypete81
af4260937f Unit test fixes for Python3 support 2013-06-29 20:24:12 +01:00
sneakypete81
e662f32cc3 Ensure the test file is closed after use to prevent Python3 warnings 2013-06-29 20:23:31 +01:00
sneakypete81
77fef49c64 PyLint fixes 2013-06-29 18:57:12 +01:00
sneakypete81
a4f7a1194d Update functional test README file 2013-06-29 15:39:52 +01:00
sneakypete81
134409b814 Update test readme file 2013-06-29 15:36:44 +01:00
sneakypete81
2147b41383 Updated test documentation 2013-06-29 13:17:33 +01:00
sneakypete81
d3a4036817 Reorganise tests into unit and functional categories.
Tox (and hence Travis) only runs unit tests
Functional tests can be run manually, with the default Python version
2013-06-29 12:43:41 +01:00
sneakypete81
9319f903ac Added tag unit tests 2013-06-29 12:16:58 +01:00