Commit graph

19 commits

Author SHA1 Message Date
sneakypete81
5ccc03a835 Add testcases for updating with empty attributes 2013-09-14 12:18:38 +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
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
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
Pete
c18e590cc2 Test that all types of empty lists are retuned as [] 2013-08-26 12:09:33 -07:00
Pete
fd5389e0d7 Moved trovebox.api and trovebox.objects into packages 2013-08-19 14:05:01 +01:00
sneakypete81
6f70330994 Renamed OpenPhoto to Trovebox 2013-07-19 17:46:30 +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
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
77fef49c64 PyLint fixes 2013-06-29 18:57:12 +01:00
sneakypete81
0c1a4149a1 Add album unit tests 2013-06-29 10:59:11 +01:00