Commit graph

81 commits

Author SHA1 Message Date
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
sneakypete81
f083503b7a Capture and check stdout/stderr during cli tests 2013-06-29 11:19:02 +01:00
sneakypete81
b22a04f071 TestHttpErrors shouldn't inherit from TestHttp 2013-06-29 10:59:12 +01:00
sneakypete81
32544878d0 Rename transform tests to be consistent 2013-06-29 10:59:11 +01:00
sneakypete81
e3e09bd224 Check that local object's fields are empty after photo is deleted 2013-06-29 10:59:11 +01:00
sneakypete81
0c1a4149a1 Add album unit tests 2013-06-29 10:59:11 +01:00
Pete
75157a15e1 Add CLI testcases. 2013-06-26 19:42:20 +01:00
sneakypete81
98abec5697 Additional photo API unit tests 2013-06-16 19:39:55 +01:00
sneakypete81
c1c309bc9d Started photo API unit tests 2013-06-16 13:09:31 +01:00
sneakypete81
b9c947c94c Added more unit tests
File post, API version selection, HTTP errors
2013-06-16 12:09:24 +01:00
sneakypete81
24fcf3f415 Added basic get/post unit tests 2013-06-15 18:40:38 +01:00
sneakypete81
48e29f24a9 PyLint fixes
Moved credentials into new Config class
2013-05-25 11:33:41 +01:00
sneakypete81
b124b48a75 No need to define NotImplementedError, Python has its own. 2013-05-25 11:33:41 +01:00
sneakypete81
ba681cea89 Code tidyup after 2to3 conversion
Moved config parser into its own module
2013-05-25 11:33:41 +01:00
sneakypete81
0805f032fb Python3 support 2013-05-25 11:33:41 +01:00
sneakypete81
16503f73dc Correct config test path 2013-05-18 13:09:29 +01:00
sneakypete81
658e3ca9f1 Use unittest2 where available, to support python <2.7 2013-05-18 13:09:29 +01:00
sneakypete81
7668deba43 Using tox, for the ability to test across multiple Python versions 2013-05-18 13:09:29 +01:00
sneakypete81
b6f7ad6fe9 Add run_tests script, to run the test suite will all test servers 2013-05-18 13:09:29 +01:00
sneakypete81
60c4d98b85 Reduce default stdout verbosity
Add OPENPHOTO_TEST_DEBUG env var for increased debug output
2013-05-18 13:09:29 +01:00
sneakypete81
c76ad3f181 Merge branch 'master' into apiv1_fixes
Conflicts:
	tests/test_base.py
	tests/test_framework.py
2013-05-11 15:01:48 +01:00
sneakypete81
654449bad4 Explicitly remove tags from photos during tag testing 2013-05-06 22:35:16 +01:00
sneakypete81
034f24db4c Add OPENPHOTO_TEST_SERVER_API env var
To allow testing to be restricted to a specific maximum API version.
This allows new API tests to be skipped for old servers.
2013-05-06 21:53:22 +01:00
sneakypete81
c4ea338f49 Workarounds for APIv1 issues 2013-05-06 21:27:31 +01:00
sneakypete81
42999f80f5 Merge branch 'master' into class_config
Conflicts:
	openphoto/__init__.py
	openphoto/openphoto_http.py
	tests/test_base.py
2013-05-06 17:25:36 +01:00
sneakypete81
53b3f7c6cf Config unit test tweaks 2013-05-06 16:43:28 +01:00
sneakypete81
896af0afae Add config unit tests 2013-05-06 16:19:09 +01:00
sneakypete81
483d0bf847 Update test README with config file details 2013-05-04 14:48:47 +02:00
sneakypete81
ab77ef9d87 Update tests to use config files
Uses 'test' by default
Can be overridden using OPENPHOTO_TEST_CONFIG env var
2013-05-04 13:44:48 +01:00
sneakypete81
4658b5c53a Error in future API test now correctly raises a 404 exception. 2013-04-28 18:38:56 +01:00
sneakypete81
1b2f0cd869 Merge branch 'master' into api_versioning
Conflicts:
	tests/test_tags.py
2013-04-28 18:38:13 +01:00
sneakypete81
b2f6863c2b Merge pull request #31 from sneakypete81/minor_fixes
Minor fixes
2013-04-28 10:25:26 -07:00
sneakypete81
38898cf8b2 Merge pull request #30 from sneakypete81/http_improvements
HTTP Improvements.
2013-04-28 10:21:33 -07:00
sneakypete81
c7c3b4bdb5 Merge branch 'master' into api_versioning
Conflicts:
	tests/test_base.py
2013-04-28 15:42:22 +01:00
sneakypete81
6d5fe4433c Merge branch 'master' into apiv2_tags
Conflicts:
	openphoto/objects.py
	tests/test_tags.py
2013-04-28 15:29:33 +01:00
sneakypete81
5641ce103a Merge pull request #27 from sneakypete81/apiv2_frontend_bugfixes
Changes due to photo/frontend album bugfix
2013-04-28 06:59:02 -07:00