Added support for URLs with many parameters e.g. max-liked, max-results and max-comments. I'm not checking in the functional tests I'm using since I still haven't fixed the problem of getting back a usable list of JSON objects for pagination.
diff --git a/tests/test_json_model.py b/tests/test_json_model.py
index 477f88d..7b95d58 100644
--- a/tests/test_json_model.py
+++ b/tests/test_json_model.py
@@ -19,9 +19,11 @@
model = JsonModel()
headers = {}
- params = {}
+ path_params = {}
+ query_params = {}
+ body = None
- headers, params, query, body = model.request(headers, params)
+ headers, params, query, body = model.request(headers, path_params, query_params, body)
self.assertEqual(headers['accept'], 'application/json')
self.assertTrue('content-type' not in headers)
@@ -32,9 +34,11 @@
model = JsonModel()
headers = {}
- params = {'body': {}}
+ path_params = {}
+ query_params = {}
+ body = {}
- headers, params, query, body = model.request(headers, params)
+ headers, params, query, body = model.request(headers, path_params, query_params, body)
self.assertEqual(headers['accept'], 'application/json')
self.assertEqual(headers['content-type'], 'application/json')