Skip to content

Commit 41d7616

Browse files
Run format
1 parent 1134e43 commit 41d7616

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/integration/test_exporter.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
import asyncio
66
import logging
7-
import tenacity
87

98
import pytest
9+
import tenacity
1010
import urllib3
1111
from pytest_operator.plugin import OpsTest
1212

@@ -142,7 +142,9 @@ async def test_exporter_endpoint(ops_test: OpsTest, mysql_router_charm_series: s
142142
):
143143
with attempt:
144144
jmx_resp = http.request("GET", f"http://{unit_address}:49152/metrics")
145-
assert jmx_resp.status == 200, "❌ cannot connect to metrics endpoint with relation with cos"
145+
assert (
146+
jmx_resp.status == 200
147+
), "❌ cannot connect to metrics endpoint with relation with cos"
146148
assert "mysqlrouter_route_health" in str(
147149
jmx_resp.data
148150
), "❌ did not find expected metric in response"
@@ -222,7 +224,9 @@ async def test_exporter_endpoint_with_tls(ops_test: OpsTest) -> None:
222224
):
223225
with attempt:
224226
jmx_resp = http.request("GET", f"http://{unit_address}:49152/metrics")
225-
assert jmx_resp.status == 200, "❌ cannot connect to metrics endpoint with relation with cos"
227+
assert (
228+
jmx_resp.status == 200
229+
), "❌ cannot connect to metrics endpoint with relation with cos"
226230
assert "mysqlrouter_route_health" in str(
227231
jmx_resp.data
228232
), "❌ did not find expected metric in response"

0 commit comments

Comments
 (0)