Skip to content

Commit 0cf2417

Browse files
committed
[Test] Adds options for pickle and conftest
1 parent 1a0e0de commit 0cf2417

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

tests/conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""
2+
Module defining configurations for running the `fv2d` test suite with `pytest`
3+
Lucas Barbier-Goy
4+
28/12/2025
5+
"""
6+
7+
def pytest_configure(config):
8+
config.addinivalue_line("markers", "slow: mark test as slow")

tests/ioutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ def h5_to_numpy(h5file: str, numpyfile: str) -> None:
77
N = len(f) - 3
88
last_ite = f'ite_{N:04d}'
99
data = {key: f[last_ite][key][:] for key in f[last_ite].keys()}
10-
np.savez(numpyfile, **data)
10+
np.savez(numpyfile, **data, allow_pickle=True)

0 commit comments

Comments
 (0)