Fixed formatting.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user