Skip to content

Commit 6d4cac7

Browse files
committed
fix/powershell
1 parent 7ea9843 commit 6d4cac7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

service/tests/test_notebook.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import os
2-
import sys
1+
from pathlib import Path
32

43
import nbformat
54
from nbclient import NotebookClient
65

76

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

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

0 commit comments

Comments
 (0)