Skip to content

Commit 48a5c2a

Browse files
committed
[Draft] Validation - à implémenter
1 parent fb7e41a commit 48a5c2a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

tests/test_validation.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
"""
2+
Validation tests for `fv2d`. The aim of these tests is to assess the quality of results provided by `fv2d`.
3+
Solutions are compared to reference data generated with known working codes and setups.
4+
5+
Lucas Barbier-Goy - 28/12/2025.
6+
"""
7+
8+
from math import e
9+
import subprocess
10+
import numpy as np
11+
from pathlib import Path
12+
from .ioutils import h5_to_numpy
13+
14+
REF_DIR = Path(__file__).parent / "validation_data"
15+
FV2D_EXE = Path(__file__).parent.parent / "build" / "fv2d"
16+
FV2D_TMP_DIR = Path(__file__).parent / "tmp_test_dir"
17+
FV2D_TMP_DIR.mkdir(exist_ok=True)
18+
TOLERANCE = 1e-8
19+
20+
def test_test():
21+
assert 0
22+
23+
def teardown_module() -> None:
24+
"""Clean up temporary files after tests."""
25+
for file in FV2D_TMP_DIR.glob("*"):
26+
file.unlink()
27+
if FV2D_TMP_DIR.exists():
28+
FV2D_TMP_DIR.rmdir()

0 commit comments

Comments
 (0)