c2cwsgiutils 6.1.0.dev38__py3-none-any.whl → 6.1.0.dev46__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.
- c2cwsgiutils/acceptance/connection.py +18 -1
- {c2cwsgiutils-6.1.0.dev38.dist-info → c2cwsgiutils-6.1.0.dev46.dist-info}/METADATA +1 -1
- {c2cwsgiutils-6.1.0.dev38.dist-info → c2cwsgiutils-6.1.0.dev46.dist-info}/RECORD +6 -6
- {c2cwsgiutils-6.1.0.dev38.dist-info → c2cwsgiutils-6.1.0.dev46.dist-info}/LICENSE +0 -0
- {c2cwsgiutils-6.1.0.dev38.dist-info → c2cwsgiutils-6.1.0.dev46.dist-info}/WHEEL +0 -0
- {c2cwsgiutils-6.1.0.dev38.dist-info → c2cwsgiutils-6.1.0.dev46.dist-info}/entry_points.txt +0 -0
@@ -161,12 +161,29 @@ class Connection:
|
|
161
161
|
cache_expected: CacheExpected = CacheExpected.NO,
|
162
162
|
**kwargs: Any,
|
163
163
|
) -> Any:
|
164
|
-
"""
|
164
|
+
"""PUT the given URL (relative to the root of API)."""
|
165
165
|
with self.session.put(self.base_url + url, headers=self._merge_headers(headers, cors), **kwargs) as r:
|
166
166
|
check_response(r, expected_status, cache_expected)
|
167
167
|
self._check_cors(cors, r)
|
168
168
|
return _get_json(r)
|
169
169
|
|
170
|
+
def patch_json(
|
171
|
+
self,
|
172
|
+
url: str,
|
173
|
+
expected_status: int = 200,
|
174
|
+
headers: Optional[Mapping[str, str]] = None,
|
175
|
+
cors: bool = True,
|
176
|
+
cache_expected: CacheExpected = CacheExpected.NO,
|
177
|
+
**kwargs: Any,
|
178
|
+
) -> Any:
|
179
|
+
"""PATCH the given URL (relative to the root of API)."""
|
180
|
+
with self.session.patch(
|
181
|
+
self.base_url + url, headers=self._merge_headers(headers, cors), **kwargs
|
182
|
+
) as r:
|
183
|
+
check_response(r, expected_status, cache_expected)
|
184
|
+
self._check_cors(cors, r)
|
185
|
+
return _get_json(r)
|
186
|
+
|
170
187
|
def delete(
|
171
188
|
self,
|
172
189
|
url: str,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
c2cwsgiutils/__init__.py,sha256=YHZ6OY8BvFrZAoBpbEWmAZ-60nqDer_CKHgY-LSHAKs,3986
|
2
2
|
c2cwsgiutils/acceptance/__init__.py,sha256=vjtpPfu0kbXUOYMx15Z8713IfPFZA9XnkUKkIFtVj_M,1500
|
3
|
-
c2cwsgiutils/acceptance/connection.py,sha256=
|
3
|
+
c2cwsgiutils/acceptance/connection.py,sha256=w478x_UiPNebOX-IC7UBgpSGbUYRZBjHsA-Vpqvtic0,9742
|
4
4
|
c2cwsgiutils/acceptance/image.py,sha256=C5AhOCcP2AzJWueewuVBOAArmw09jKzlLXXh56RcC7g,7406
|
5
5
|
c2cwsgiutils/acceptance/package-lock.json,sha256=uEfgr4QMvmD8ZVyetienbAzOcraRtXSX-6eDnLzyHuA,42656
|
6
6
|
c2cwsgiutils/acceptance/package.json,sha256=uoKRPC40pfB1XOa0bv1isa67Le4lCxigwhX0sLFavQo,101
|
@@ -60,8 +60,8 @@ c2cwsgiutils/stats_pyramid/_db_spy.py,sha256=ZGRdrI17Bdl3mzaLjfPyAaEW3KK8Pikrgi-
|
|
60
60
|
c2cwsgiutils/stats_pyramid/_pyramid_spy.py,sha256=P212MGGl2VV_7UU4AXZA-rOuF7ouaONRklZwpas2wc8,3209
|
61
61
|
c2cwsgiutils/templates/index.html.mako,sha256=zrdMxncl3PFwdg1TVDKAjH1CaXw1m7yr9dj8Hi7rYGw,1362
|
62
62
|
c2cwsgiutils/version.py,sha256=z4of1DDr6J7PDw4AUOz31Gp63khgXf3JfiIaoWUM-9I,2870
|
63
|
-
c2cwsgiutils-6.1.0.
|
64
|
-
c2cwsgiutils-6.1.0.
|
65
|
-
c2cwsgiutils-6.1.0.
|
66
|
-
c2cwsgiutils-6.1.0.
|
67
|
-
c2cwsgiutils-6.1.0.
|
63
|
+
c2cwsgiutils-6.1.0.dev46.dist-info/LICENSE,sha256=rM6IWxociA3daRkXnNLYOxGndT5fbs3BfVZCA2Xgt-g,1304
|
64
|
+
c2cwsgiutils-6.1.0.dev46.dist-info/METADATA,sha256=gYs3gFjen1nwfHlX3ScDGhTa979lBZQz0VB-KFNfiZk,33473
|
65
|
+
c2cwsgiutils-6.1.0.dev46.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
|
66
|
+
c2cwsgiutils-6.1.0.dev46.dist-info/entry_points.txt,sha256=ujgqMTL1awN9qDg8WXmrF7m0fgR-hslUM6zKH86pvy0,703
|
67
|
+
c2cwsgiutils-6.1.0.dev46.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|