From a09c468faf773bb1fc5c496c4ced226ebcc4072b Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Mon, 7 Dec 2020 15:49:40 -0600 Subject: [PATCH] Updates to the dagmc test and settings test from the Python API. --- tests/unit_tests/dagmc/test.py | 4 +++- tests/unit_tests/test_settings.py | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit_tests/dagmc/test.py b/tests/unit_tests/dagmc/test.py index e5d772555..b3e2c390f 100644 --- a/tests/unit_tests/dagmc/test.py +++ b/tests/unit_tests/dagmc/test.py @@ -29,7 +29,9 @@ def dagmc_model(request): source = openmc.Source(space=source_box) model.settings.source = source - model.settings.dagmc = True + # geometry + dagmc_universe = openmc.DAGMCUniverse('dagmc.h5m') + model.geometry = openmc.Geometry(dagmc_universe) # tally tally = openmc.Tally() diff --git a/tests/unit_tests/test_settings.py b/tests/unit_tests/test_settings.py index 7a3357d43..fdaf5c2db 100644 --- a/tests/unit_tests/test_settings.py +++ b/tests/unit_tests/test_settings.py @@ -54,7 +54,6 @@ def test_export_to_xml(run_in_tmpdir): s.log_grid_bins = 2000 s.photon_transport = False s.electron_treatment = 'led' - s.dagmc = False # Make sure exporting XML works s.export_to_xml() @@ -111,4 +110,3 @@ def test_export_to_xml(run_in_tmpdir): assert s.log_grid_bins == 2000 assert not s.photon_transport assert s.electron_treatment == 'led' - assert not s.dagmc