File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55bp = Blueprint ("rates" , __name__ )
66
77from . import routes # noqa: E402,F401
8-
Original file line number Diff line number Diff line change @@ -41,5 +41,3 @@ class RefreshThrottleSchema(Schema):
4141
4242class ErrorMessageSchema (Schema ):
4343 message = fields .String (required = True )
44-
45-
Original file line number Diff line number Diff line change @@ -17,4 +17,3 @@ def utc_now() -> datetime:
1717 """Return the current UTC datetime."""
1818
1919 return datetime .now (UTC )
20-
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ def test_health_rates_endpoint_returns_snapshot_metadata(client):
5353 "stale" : False ,
5454 }
5555
56+
5657def test_health_rates_marks_stale_when_cached_snapshot_used (client ):
5758 app = client .application
5859 orchestrator = app .extensions .get ("fx_orchestrator" )
Original file line number Diff line number Diff line change @@ -116,9 +116,7 @@ def test_request_logging_emits_correlation_fields():
116116 client = app .test_client ()
117117 response = client .get ("/ok" )
118118
119- records = [
120- record for record in handler .records if record .message == "Request handled"
121- ]
119+ records = [record for record in handler .records if record .message == "Request handled" ]
122120 assert records
123121 record = records [- 1 ]
124122 assert record .event == "request.completed"
@@ -144,9 +142,7 @@ def test_request_logging_captures_errors():
144142 with pytest .raises (RuntimeError ):
145143 client .get ("/boom" )
146144
147- records = [
148- record for record in handler .records if record .message == "Request failed"
149- ]
145+ records = [record for record in handler .records if record .message == "Request failed" ]
150146 assert records
151147 record = records [- 1 ]
152148 assert record .event == "request.failed"
You can’t perform that action at this time.
0 commit comments