mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-23 19:45:34 -04:00
15 lines
334 B
Python
15 lines
334 B
Python
import openmc
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(scope='module', autouse=True)
|
|
def setup_regression_test(request):
|
|
# Reset autogenerated IDs assigned to OpenMC objects
|
|
openmc.reset_auto_ids()
|
|
|
|
# Change to test directory
|
|
olddir = request.fspath.dirpath().chdir()
|
|
try:
|
|
yield
|
|
finally:
|
|
olddir.chdir()
|