clear-skies 1.22.27__py3-none-any.whl → 1.22.28__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of clear-skies might be problematic. Click here for more details.
- {clear_skies-1.22.27.dist-info → clear_skies-1.22.28.dist-info}/METADATA +1 -1
- {clear_skies-1.22.27.dist-info → clear_skies-1.22.28.dist-info}/RECORD +5 -5
- clearskies/backends/api_backend.py +6 -6
- {clear_skies-1.22.27.dist-info → clear_skies-1.22.28.dist-info}/LICENSE +0 -0
- {clear_skies-1.22.27.dist-info → clear_skies-1.22.28.dist-info}/WHEEL +0 -0
|
@@ -46,7 +46,7 @@ clearskies/autodoc/schema/object.py,sha256=GJ5zLw2CzhezQiNuIhVgRyk0esXqfHD5fxZrc
|
|
|
46
46
|
clearskies/autodoc/schema/password.py,sha256=Ptj8OeddAL4h69KWqZ6ubZ2awR13xdDIrNe2N0T1jic,196
|
|
47
47
|
clearskies/autodoc/schema/string.py,sha256=oxZPCxYYhWnNHdbtwD3QuniStbj8XbBBpDTFXgPR1VU,244
|
|
48
48
|
clearskies/backends/__init__.py,sha256=ATNzuDYREx-VBWemPmG95FR8EzO2X0--7tkErUuF9Qc,832
|
|
49
|
-
clearskies/backends/api_backend.py,sha256=
|
|
49
|
+
clearskies/backends/api_backend.py,sha256=voXp-6ZdeZWfIKbgYb3Bcql8tzwJXXRfvl_WzZR5pv0,15561
|
|
50
50
|
clearskies/backends/api_get_only_backend.py,sha256=KfFF72l31KBK--90lIkDqE5gcTnolSkShUqNaaWZ_gc,1690
|
|
51
51
|
clearskies/backends/backend.py,sha256=fkL-De0MUdzcS2JG_spSUQZIVL9oRFvaL6SP26JPpcI,7399
|
|
52
52
|
clearskies/backends/cursor_backend.py,sha256=VntlPS6z6bnZOC3XRJ-WFf5gK3pFUhH_qJpnZn8hl9U,11278
|
|
@@ -208,7 +208,7 @@ clearskies/tests/simple_api/models/__init__.py,sha256=nUA0W6fgXw_Bxa9CudkaDkC80t
|
|
|
208
208
|
clearskies/tests/simple_api/models/status.py,sha256=PEhPbaQh5qdUNHp8O0gz91LOLENAEBtqSaHxUPXchaM,699
|
|
209
209
|
clearskies/tests/simple_api/models/user.py,sha256=5_P4Tp1tTdX7PkMJ__epPM5MA7JAeVYGas69vcWloLc,819
|
|
210
210
|
clearskies/tests/simple_api/users_api.py,sha256=KYXCgEofDxHeRdQK67txN5oYUPvxxmB8JTku7L-apk4,2344
|
|
211
|
-
clear_skies-1.22.
|
|
212
|
-
clear_skies-1.22.
|
|
213
|
-
clear_skies-1.22.
|
|
214
|
-
clear_skies-1.22.
|
|
211
|
+
clear_skies-1.22.28.dist-info/LICENSE,sha256=3Ehd0g3YOpCj8sqj0Xjq5qbOtjjgk9qzhhD9YjRQgOA,1053
|
|
212
|
+
clear_skies-1.22.28.dist-info/METADATA,sha256=z3lGADFmnzYwfyGTon4L0AGl_wvmFQWAfPqy6fdGEYQ,1842
|
|
213
|
+
clear_skies-1.22.28.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
214
|
+
clear_skies-1.22.28.dist-info/RECORD,,
|
|
@@ -98,7 +98,7 @@ class ApiBackend(Backend):
|
|
|
98
98
|
return [url, self.update_method(id, model), data, {}]
|
|
99
99
|
|
|
100
100
|
def _map_update_response(self, json):
|
|
101
|
-
if
|
|
101
|
+
if "data" not in json:
|
|
102
102
|
raise ValueError("Unexpected API response to update request")
|
|
103
103
|
return json["data"]
|
|
104
104
|
|
|
@@ -112,7 +112,7 @@ class ApiBackend(Backend):
|
|
|
112
112
|
return [url, self.create_method(data, model), data, {}]
|
|
113
113
|
|
|
114
114
|
def _map_create_response(self, json):
|
|
115
|
-
if
|
|
115
|
+
if "data" not in json:
|
|
116
116
|
raise ValueError("Unexpected API response to create request")
|
|
117
117
|
return json["data"]
|
|
118
118
|
|
|
@@ -147,7 +147,7 @@ class ApiBackend(Backend):
|
|
|
147
147
|
]
|
|
148
148
|
|
|
149
149
|
def _map_count_response(self, json):
|
|
150
|
-
if
|
|
150
|
+
if "total_matches" not in json:
|
|
151
151
|
raise ValueError("Unexpected API response when executing count request")
|
|
152
152
|
return json["total_matches"]
|
|
153
153
|
|
|
@@ -168,7 +168,7 @@ class ApiBackend(Backend):
|
|
|
168
168
|
return [url, self.records_method(configuration), self._as_post_data(configuration), {}]
|
|
169
169
|
|
|
170
170
|
def _map_records_response(self, json):
|
|
171
|
-
if
|
|
171
|
+
if "data" not in json:
|
|
172
172
|
raise ValueError("Unexpected response from records request")
|
|
173
173
|
return json["data"]
|
|
174
174
|
|
|
@@ -186,7 +186,7 @@ class ApiBackend(Backend):
|
|
|
186
186
|
|
|
187
187
|
if not response.ok:
|
|
188
188
|
if self._auth and self._auth.has_dynamic_credentials and not is_retry:
|
|
189
|
-
return self._execute_request(url, method, json=json, headers=headers,
|
|
189
|
+
return self._execute_request(url, method, json=json, headers=headers, is_retry=True)
|
|
190
190
|
if not response.ok:
|
|
191
191
|
raise ValueError(f"Failed request. Status code: {response.status_code}, message: {response.content!r}")
|
|
192
192
|
|
|
@@ -198,7 +198,7 @@ class ApiBackend(Backend):
|
|
|
198
198
|
raise KeyError(f"ApiBackend does not support config '{key}'. You may be using the wrong backend")
|
|
199
199
|
|
|
200
200
|
for key in self._allowed_configs:
|
|
201
|
-
if not
|
|
201
|
+
if key not in configuration:
|
|
202
202
|
configuration[key] = [] if key[-1] == "s" else ""
|
|
203
203
|
return configuration
|
|
204
204
|
|
|
File without changes
|
|
File without changes
|