Simplified command sanitization and covered closed clients.
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 6s
CI / Tests (push) Successful in 30s
CI / Type Checking (push) Successful in 12s
CI / Spelling (push) Successful in 10s

This commit is contained in:
2026-05-25 21:36:00 -04:00
parent c0bb2cf423
commit 85d3adf775
2 changed files with 6 additions and 3 deletions
+6
View File
@@ -477,3 +477,9 @@ class TestOpenConnectionCount:
async def test_zero_with_no_requests(self, owncast_client: OwncastClient) -> None:
"""Return zero when no requests have been made."""
assert owncast_client.open_connection_count == 0
async def test_zero_after_close(self, owncast_client: OwncastClient) -> None:
"""Return zero after the HTTP session has been closed."""
await owncast_client.close()
assert owncast_client.open_connection_count == 0