scim2-client 0.5.0__py3-none-any.whl → 0.5.1__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.
scim2_client/client.py CHANGED
@@ -265,7 +265,6 @@ class SCIMClient:
265
265
  if raise_scim_errors is None:
266
266
  raise_scim_errors = self.raise_scim_errors
267
267
 
268
- self._check_status_codes(status_code, expected_status_codes)
269
268
  self._check_content_types(headers)
270
269
 
271
270
  # In addition to returning an HTTP response code, implementers MUST return
@@ -283,6 +282,7 @@ class SCIMClient:
283
282
  check_response_payload = self.check_response_payload
284
283
 
285
284
  if not check_response_payload:
285
+ self._check_status_codes(status_code, expected_status_codes)
286
286
  return response_payload
287
287
 
288
288
  if (
@@ -294,6 +294,8 @@ class SCIMClient:
294
294
  raise SCIMResponseErrorObject(obj=error.detail, source=error)
295
295
  return error
296
296
 
297
+ self._check_status_codes(status_code, expected_status_codes)
298
+
297
299
  if not expected_types:
298
300
  return response_payload
299
301
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: scim2-client
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary: Pythonically build SCIM requests and parse SCIM responses
5
5
  Project-URL: documentation, https://scim2-client.readthedocs.io
6
6
  Project-URL: repository, https://github.com/python-scim/scim2-client
@@ -1,11 +1,11 @@
1
1
  scim2_client/__init__.py,sha256=l0pyBLiTpFA68ao98PqQLT_Xx0mw8BHumwrIHYCWa_M,845
2
- scim2_client/client.py,sha256=ySG8sLOqOxzsW1CF2uR1UO_uuUef8sgUhfiWFviu-Wo,46293
2
+ scim2_client/client.py,sha256=Ti7LNwCSa_98GK6_LkG-X0GFMf5HQ1KQ4gOubUc16to,46367
3
3
  scim2_client/errors.py,sha256=FVmRXsaZLn1VZhJ3dSDs4IqycuU92AEun9JWWMseVO8,4397
4
4
  scim2_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  scim2_client/engines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  scim2_client/engines/httpx.py,sha256=L39ZZHjqe43uIQpgh_r_maqM2gkf3_Rk6d8MeNe57gk,17781
7
7
  scim2_client/engines/werkzeug.py,sha256=DmUBWytoWPehcrgBpGzlRJLCT7mrAW_VWSQ6BHylwCo,10800
8
- scim2_client-0.5.0.dist-info/METADATA,sha256=e9pWKfSXOIVsyRptG9Eg34SAgn_alcz2DDbGr9PaEIQ,16961
9
- scim2_client-0.5.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
10
- scim2_client-0.5.0.dist-info/licenses/LICENSE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
- scim2_client-0.5.0.dist-info/RECORD,,
8
+ scim2_client-0.5.1.dist-info/METADATA,sha256=eJVaMV-MJtKvkH3V9LyPw8hpMy_6-1W_tKCOpLFtP3A,16961
9
+ scim2_client-0.5.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
10
+ scim2_client-0.5.1.dist-info/licenses/LICENSE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
+ scim2_client-0.5.1.dist-info/RECORD,,