fastapi-testing 0.3.1__py3-none-any.whl → 0.3.2__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.
@@ -209,6 +209,13 @@ class AsyncTestResponse:
209
209
  raise InvalidResponseTypeError("WebSocket connections don't have status codes")
210
210
  return self._response.status_code
211
211
 
212
+ @property
213
+ def headers(self) -> httpx.Headers:
214
+ """Get response headers (HTTP only)."""
215
+ if self._is_websocket:
216
+ raise InvalidResponseTypeError("WebSocket connections don't have headers")
217
+ return self._response.headers
218
+
212
219
  def websocket(self) -> ClientConnection:
213
220
  """Get WebSocket connection (WebSocket only)."""
214
221
  if not self._is_websocket:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastapi-testing
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: A lightweight, async-first testing framework for FastAPI applications
5
5
  Project-URL: Homepage, https://github.com/descoped/fastapi-testing
6
6
  Project-URL: Repository, https://github.com/descoped/fastapi-testing
@@ -0,0 +1,6 @@
1
+ fastapi_testing/__init__.py,sha256=Qgoq80ZJGV1TfLc2nzRuTnLcfbDHRAgOlKrHaY9ROZI,559
2
+ fastapi_testing/async_fastapi_testing.py,sha256=u24Q5svSt1U6i2kdUxDqD2U7ugRpkLQyLeCE_bfwnPo,20648
3
+ fastapi_testing-0.3.2.dist-info/METADATA,sha256=56t73XHdhHCJQigJt6srXtmpz3EsUbgqz5Ud7YVJZR4,13373
4
+ fastapi_testing-0.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ fastapi_testing-0.3.2.dist-info/licenses/LICENSE,sha256=FS7LYVt91OiPx9wiH1K3jAWLS90HpvzKnNAvW_XLeqo,1065
6
+ fastapi_testing-0.3.2.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- fastapi_testing/__init__.py,sha256=Qgoq80ZJGV1TfLc2nzRuTnLcfbDHRAgOlKrHaY9ROZI,559
2
- fastapi_testing/async_fastapi_testing.py,sha256=lS7OUJUgfYH3KMfBt9XusBE_ry3UnM2ZtiKdaYV-NG4,20389
3
- fastapi_testing-0.3.1.dist-info/METADATA,sha256=2_zt4RK0Af0QMMN3yiHIqg6T85JsZF0Ocro6HJSCgDg,13373
4
- fastapi_testing-0.3.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- fastapi_testing-0.3.1.dist-info/licenses/LICENSE,sha256=FS7LYVt91OiPx9wiH1K3jAWLS90HpvzKnNAvW_XLeqo,1065
6
- fastapi_testing-0.3.1.dist-info/RECORD,,