Skip to content

Commit 7394282

Browse files
committed
fixes tests
1 parent dec52ce commit 7394282

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/dashboard/test_dashboard.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ async def test_connection_uri_has_http_prefix_if_localhost(app: TestClient):
149149
res = app.get(url="/auth/dashboard")
150150
assert res.status_code == 200
151151
assert f'window.connectionURI = "{connection_uri}"' in str(res.text)
152+
if st_config:
153+
st_config.connection_uri = "http://localhost:3567"
152154

153155

154156
async def test_connection_uri_has_https_prefix_if_not_localhost(app: TestClient):
@@ -172,6 +174,8 @@ async def test_connection_uri_has_https_prefix_if_not_localhost(app: TestClient)
172174
res = app.get(url="/auth/dashboard")
173175
assert res.status_code == 200
174176
assert f'window.connectionURI = "{connection_uri}"' in str(res.text)
177+
if st_config:
178+
st_config.connection_uri = "http://localhost:3567"
175179

176180

177181
async def test_that_first_connection_uri_is_selected_among_multiple_uris(
@@ -197,3 +201,5 @@ async def test_that_first_connection_uri_is_selected_among_multiple_uris(
197201
res = app.get(url="/auth/dashboard")
198202
assert res.status_code == 200
199203
assert f'window.connectionURI = "{first_connection_uri}"' in str(res.text)
204+
if st_config:
205+
st_config.connection_uri = "http://localhost:3567"

0 commit comments

Comments
 (0)