Skip to content

Commit c701845

Browse files
committed
fix/powershell
1 parent cf4429c commit c701845

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

service/tests/test_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
def test_main_script_output():
88
result = subprocess.run(
9-
[sys.executable, os.path.join("/app","main.py")],
9+
[sys.executable, os.path.join(os.path.dirname(__file__), "..","app", "main.py")],
1010
capture_output=True,
1111
text=True,
1212
check=True
@@ -17,7 +17,7 @@ def test_main_script_output():
1717

1818

1919
def test_sample_csv_content():
20-
csv_path = os.path.join("/data", "sample.csv")
20+
csv_path = os.path.join(os.path.dirname(__file__), "..", "data", "sample.csv")
2121
with open(csv_path, newline="") as f:
2222
reader = csv.DictReader(f)
2323
rows = list(reader)

service/tests/test_notebook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import os
2+
import sys
23

34
import nbformat
45
from nbclient import NotebookClient
56

67

78
def test_workspace_notebook_runs_and_prints_hello():
8-
nb_path = os.path.join("/app", "main.ipynb")
9+
nb_path = [sys.executable, os.path.join(os.path.dirname(__file__), "..","app", "main.ipynb")],
910
assert nb_path.exists(), f"Notebook not found: {nb_path}"
1011

1112
nb = nbformat.read(str(nb_path), as_version=4)

0 commit comments

Comments
 (0)