We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 341195a commit 0fae517Copy full SHA for 0fae517
fastapi_log/tests/test_fastapi_log.py
@@ -47,6 +47,8 @@ def test_log_exception(self):
47
48
self.assertEqual(len(capturer.records), 1)
49
log = capturer.records[0]
50
+ self.assertEqual(response.headers["API-Log-Entry-ID"], str(log.id))
51
+
52
self.assertIn("/fastapi_demo/test/demo/exception", log.request_url)
53
self.assertEqual(log.request_method, "GET")
54
self.assertEqual(log.response_status_code, 400)
0 commit comments