apexdevkit 1.3.13__tar.gz → 1.3.14__tar.gz
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.
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/PKG-INFO +1 -1
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/testing/rest.py +6 -1
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/pyproject.toml +1 -1
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/LICENSE +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/README.md +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/__init__.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/annotation/__init__.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/annotation/deprecate.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/error.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/fastapi/__init__.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/fastapi/builder.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/fastapi/dependable.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/fastapi/docs.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/fastapi/response.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/fastapi/router.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/fastapi/schema.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/fastapi/service.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/http/__init__.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/http/fake.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/http/fluent.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/http/httpx.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/http/json.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/http/url.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/py.typed +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/repository/__init__.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/repository/connector.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/repository/database.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/repository/in_memory.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/repository/interface.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/testing/__init__.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/testing/database.py +0 -0
- {apexdevkit-1.3.13 → apexdevkit-1.3.14}/apexdevkit/testing/fake.py +0 -0
|
@@ -233,6 +233,9 @@ class RestResponse:
|
|
|
233
233
|
http_code: int
|
|
234
234
|
|
|
235
235
|
def fail(self) -> Self:
|
|
236
|
+
if self.http_code == 422:
|
|
237
|
+
return self
|
|
238
|
+
|
|
236
239
|
return self.with_status("fail")
|
|
237
240
|
|
|
238
241
|
def success(self) -> Self:
|
|
@@ -245,7 +248,9 @@ class RestResponse:
|
|
|
245
248
|
|
|
246
249
|
def with_code(self, value: int) -> Self:
|
|
247
250
|
assert self.http_code == value
|
|
248
|
-
|
|
251
|
+
|
|
252
|
+
if self.http_code != 422:
|
|
253
|
+
assert self.json.value_of("code").to(int) == value
|
|
249
254
|
|
|
250
255
|
return self
|
|
251
256
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|