We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aa60ad commit 123774cCopy full SHA for 123774c
test/test_examples.py
@@ -30,7 +30,8 @@ def check(example_script, snapshot):
30
hds = HeadFile(f, precision="double")
31
# assert hds.get_data() == pytest.approx(snapshot)
32
# assert snapshot == hds.get_data()
33
- arr = np.load(Path.cwd() / "__snapshots__" / "test_examples" / f"{example_script.stem}.npy")
+ test_dir = Path(f"{example_script.parent}/../../test")
34
+ arr = np.load(test_dir / "__snapshots__" / "test_examples" / f"{example_script.stem}.npy")
35
assert np.allclose(arr, hds.get_data())
36
37
0 commit comments