Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 3a5eddf

Browse files
committed
Fix tests
1 parent 2665c8a commit 3a5eddf

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

packages/jumpstarter/jumpstarter/common/utils_test.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,21 @@
55

66
def test_launch_shell(tmp_path, monkeypatch):
77
monkeypatch.setenv("SHELL", shutil.which("true"))
8-
exit_code = launch_shell(host=str(tmp_path / "test.sock"), context="remote", allow=["*"], unsafe=False)
8+
exit_code = launch_shell(
9+
host=str(tmp_path / "test.sock"),
10+
context="remote",
11+
allow=["*"],
12+
unsafe=False,
13+
use_alternative_endpoints=False,
14+
)
915
assert exit_code == 0
1016

1117
monkeypatch.setenv("SHELL", shutil.which("false"))
12-
exit_code = launch_shell(host=str(tmp_path / "test.sock"), context="remote", allow=["*"], unsafe=False)
18+
exit_code = launch_shell(
19+
host=str(tmp_path / "test.sock"),
20+
context="remote",
21+
allow=["*"],
22+
unsafe=False,
23+
use_alternative_endpoints=False,
24+
)
1325
assert exit_code == 1

packages/jumpstarter/jumpstarter/config/client_config_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ def test_client_config_save(monkeypatch: pytest.MonkeyPatch):
207207
insecure: false
208208
token: dGhpc2lzYXRva2VuLTEyMzQxMjM0MTIzNEyMzQtc2Rxd3Jxd2VycXdlcnF3ZXJxd2VyLTEyMzQxMjM0MTIz
209209
grpcOptions: {}
210+
useAlternativeEndpoints: false
210211
drivers:
211212
allow:
212213
- jumpstarter.drivers.*
@@ -243,6 +244,7 @@ def test_client_config_save_explicit_path():
243244
insecure: false
244245
token: dGhpc2lzYXRva2VuLTEyMzQxMjM0MTIzNEyMzQtc2Rxd3Jxd2VycXdlcnF3ZXJxd2VyLTEyMzQxMjM0MTIz
245246
grpcOptions: {}
247+
useAlternativeEndpoints: false
246248
drivers:
247249
allow:
248250
- jumpstarter.drivers.*
@@ -277,6 +279,7 @@ def test_client_config_save_unsafe_drivers():
277279
insecure: false
278280
token: dGhpc2lzYXRva2VuLTEyMzQxMjM0MTIzNEyMzQtc2Rxd3Jxd2VycXdlcnF3ZXJxd2VyLTEyMzQxMjM0MTIz
279281
grpcOptions: {}
282+
useAlternativeEndpoints: false
280283
drivers:
281284
allow: []
282285
unsafe: true

0 commit comments

Comments
 (0)