style: carry clearer status_code comparison into renamed e2e dir

This commit is contained in:
mubashir1osmani 2026-06-18 22:55:51 -07:00
parent 5782b74e65
commit c727d96fc9
2 changed files with 2 additions and 2 deletions

View file

@ -91,7 +91,7 @@ class ProbeResult(BaseModel):
@property
def healthy(self) -> bool:
return 200 <= self.status_code != 404 and self.status_code < 500
return 200 <= self.status_code < 500 and self.status_code != 404
class StreamingResponse(BaseModel):

View file

@ -74,7 +74,7 @@ class ProbeResult:
def healthy(self) -> bool:
# Route exists (not 404), handler did not crash (not 5xx), request
# completed (not -1). A 4xx (missing params/auth) still means it ran.
return 200 <= self.status_code != 404 and self.status_code < 500
return 200 <= self.status_code < 500 and self.status_code != 404
def __str__(self) -> str:
return f"GET {self.url} -> {self.status_code}\n{self.body[:600]}"