Skip to content

Commit cf4429c

Browse files
committed
fix/powershell
1 parent b1cbb4d commit cf4429c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed
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(os.path.dirname(__file__), "..", "main.py")],
9+
[sys.executable, os.path.join("/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(os.path.dirname(__file__), "..", "..", "data", "sample.csv")
20+
csv_path = os.path.join("/data", "sample.csv")
2121
with open(csv_path, newline="") as f:
2222
reader = csv.DictReader(f)
2323
rows = list(reader)
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
# service/tests/test_notebook.py
2-
from pathlib import Path
1+
import os
32

43
import nbformat
54
from nbclient import NotebookClient
65

76

87
def test_workspace_notebook_runs_and_prints_hello():
9-
nb_path = Path(__file__).resolve().parents[1] / "main.ipynb"
8+
nb_path = os.path.join("/app", "main.ipynb")
109
assert nb_path.exists(), f"Notebook not found: {nb_path}"
1110

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

0 commit comments

Comments
 (0)