Skip to content

Commit 544fff7

Browse files
committed
fix system tests on windows
1 parent da8616c commit 544fff7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

system_tests/lewis_tests.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
@contextlib.contextmanager
1919
def julabo_simulation():
2020
command = [
21-
"python",
21+
"uv",
22+
"run",
2223
str(LEWIS_PATH),
2324
"julabo",
2425
"-p",
@@ -33,7 +34,7 @@ def julabo_simulation():
3334

3435

3536
def run_control_command(mode, command, value):
36-
subprocess.check_output(["python", str(LEWIS_CONTROL_PATH), mode, command, value]).decode()
37+
subprocess.check_output(["uv", "run", str(LEWIS_CONTROL_PATH), mode, command, value], env=os.environ).decode()
3738

3839

3940
def santise_whitespace(input_str):
@@ -42,7 +43,7 @@ def santise_whitespace(input_str):
4243

4344
def query_device_status():
4445
return santise_whitespace(
45-
subprocess.check_output(["python", str(LEWIS_CONTROL_PATH), "device"]).decode()
46+
subprocess.check_output(["uv", "run", str(LEWIS_CONTROL_PATH), "device"], env=os.environ).decode()
4647
)
4748

4849

@@ -56,7 +57,7 @@ def test_list_available_devices(self):
5657
When: running Lewis without parameters
5758
Then: returns a list of possible simulations
5859
"""
59-
result = santise_whitespace(subprocess.check_output(["python", str(LEWIS_PATH)]).decode())
60+
result = santise_whitespace(subprocess.check_output(["uv", "run", str(LEWIS_PATH)]).decode())
6061

6162
verify(result, self.reporter)
6263

0 commit comments

Comments
 (0)