Skip to content

Commit 123774c

Browse files
mjrenomjreno
authored andcommitted
path adjustment
1 parent 2aa60ad commit 123774c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test_examples.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def check(example_script, snapshot):
3030
hds = HeadFile(f, precision="double")
3131
# assert hds.get_data() == pytest.approx(snapshot)
3232
# assert snapshot == hds.get_data()
33-
arr = np.load(Path.cwd() / "__snapshots__" / "test_examples" / f"{example_script.stem}.npy")
33+
test_dir = Path(f"{example_script.parent}/../../test")
34+
arr = np.load(test_dir / "__snapshots__" / "test_examples" / f"{example_script.stem}.npy")
3435
assert np.allclose(arr, hds.get_data())
3536

3637

0 commit comments

Comments
 (0)