Skip to content

Commit 26c031a

Browse files
committed
Run tests in tmpdir to keep repo clean
1 parent 63fa428 commit 26c031a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/unit_tests/test_cylindrical_mesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def label(p):
7575
return f'estimator:{p}'
7676

7777
@pytest.mark.parametrize('estimator,origin', test_cases, ids=label)
78-
def test_offset_mesh(model, estimator, origin):
78+
def test_offset_mesh(run_in_tmpdir, model, estimator, origin):
7979
"""Tests that the mesh has been moved based on tally results
8080
"""
8181
mesh = model.tallies[0].filters[0].mesh

tests/unit_tests/test_spherical_mesh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def label(p):
7979
return f'estimator:{p}'
8080

8181
@pytest.mark.parametrize('estimator,origin', test_cases, ids=label)
82-
def test_offset_mesh(model, estimator, origin):
82+
def test_offset_mesh(run_in_tmpdir, model, estimator, origin):
8383
"""Tests that the mesh has been moved based on tally results
8484
"""
8585
mesh = model.tallies[0].filters[0].mesh

0 commit comments

Comments
 (0)