Fixed formatting.
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 5s
CI / Tests (push) Successful in 27s
CI / Type Checking (push) Successful in 8s
CI / Spelling (push) Successful in 5s

This commit is contained in:
2026-05-17 14:49:37 -04:00
parent 0620c675d9
commit 33cc434354
6 changed files with 12 additions and 28 deletions
+3 -7
View File
@@ -423,9 +423,7 @@ class TestResponseTimeMetrics:
)
await client.get_stream_state("example.com")
output = generate_metrics_output(metrics)
assert (
'owncastsentry_api_response_seconds{domain="example.com"}' in output
)
assert 'owncastsentry_api_response_seconds{domain="example.com"}' in output
finally:
await client.close()
@@ -446,8 +444,7 @@ class TestResponseTimeMetrics:
await client.get_stream_state("example.com")
output = generate_metrics_output(metrics)
assert (
'owncastsentry_api_response_seconds{domain="example.com"}'
not in output
'owncastsentry_api_response_seconds{domain="example.com"}' not in output
)
finally:
await client.close()
@@ -469,8 +466,7 @@ class TestResponseTimeMetrics:
await client.get_stream_state("example.com")
output = generate_metrics_output(metrics)
assert (
'owncastsentry_api_response_seconds{domain="example.com"}'
not in output
'owncastsentry_api_response_seconds{domain="example.com"}' not in output
)
finally:
await client.close()
+1 -3
View File
@@ -117,9 +117,7 @@ class TestHasRoomSubscriptions:
self, subscription_repo: SubscriptionRepository
) -> None:
"""Return False when the room has no subscriptions."""
assert not await subscription_repo.has_room_subscriptions(
"!nobody:example.com"
)
assert not await subscription_repo.has_room_subscriptions("!nobody:example.com")
class TestGetRoomSubscriptions: