Skip to content

Commit f00f2cc

Browse files
committed
refactor more tests for simdata and solvers
1 parent a852d36 commit f00f2cc

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed
File renamed without changes.

tests/fv_mesh_mapping_test.py renamed to tests/_internal/simdata/fv_mesh_mapping_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from pyvcell._internal.simdata.vtk.vtkmesh_fv import write_finite_volume_smoothed_vtk_grid_and_index_data
66
from tests.test_fixture import setup_files, teardown_files
77

8-
test_data_dir = (Path(__file__).parent / "test_data").absolute()
8+
test_data_dir = (Path(__file__).parent.parent.parent / "test_data").absolute()
99

1010

1111
def test_mesh_parse() -> None:

tests/vcell_parsing_test.py renamed to tests/_internal/simdata/vcell_parsing_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from pyvcell._internal.simdata.simdata_models import DataFunctions, NamedFunction, PdeDataSet, VariableType
99
from tests.test_fixture import setup_files, teardown_files
1010

11-
test_data_dir = (Path(__file__).parent / "test_data").absolute()
11+
test_data_dir = (Path(__file__).parent.parent.parent / "test_data").absolute()
1212

1313

1414
def test_parse_vcelldata() -> None:

tests/zarr_writer_test.py renamed to tests/_internal/simdata/zarr_writer_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pyvcell._internal.simdata.zarr_writer import write_zarr
77
from tests.test_fixture import setup_files, teardown_files
88

9-
test_data_dir = (Path(__file__).parent / "test_data").absolute()
9+
test_data_dir = (Path(__file__).parent.parent.parent / "test_data").absolute()
1010

1111

1212
def test_zarr_writer() -> None:

tests/_internal/solvers/__init__.py

Whitespace-only changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from tests.test_fixture import setup_files, teardown_files
77

88
# get parent directory of this script as a path
9-
parent_dir: Path = Path(os.path.dirname(os.path.realpath(__file__))).parent
10-
test_data_dir = (Path(__file__).parent / "test_data").absolute()
9+
parent_dir: Path = Path(os.path.dirname(os.path.realpath(__file__))).parent.parent.parent
10+
test_data_dir = (Path(__file__).parent.parent.parent / "test_data").absolute()
1111
fv_input_file = test_data_dir / "SimID_946368938_0_.fvinput"
1212
vcg_input_file = test_data_dir / "SimID_946368938_0_.vcg"
1313
test_output_dir = parent_dir / "test_output"

0 commit comments

Comments
 (0)