From 22448ee005a4bcb09db91452b610aca34907e4c5 Mon Sep 17 00:00:00 2001 From: pshriwise Date: Tue, 25 Sep 2018 23:00:50 -0500 Subject: [PATCH] Moving CAD test to regression tests. --- tests/regression_tests/cad/__init__.py | 1 + .../cad/conftest.py | 0 .../{unit_tests => regression_tests}/cad/dagmc.h5m | Bin .../cad/materials.xml | 0 .../cad/settings.xml | 0 .../cad/tallies.xml | 0 .../test_cad.py => regression_tests/cad/test.py} | 0 tests/unit_tests/cad/__init__.py | 9 --------- 8 files changed, 1 insertion(+), 9 deletions(-) create mode 100644 tests/regression_tests/cad/__init__.py rename tests/{unit_tests => regression_tests}/cad/conftest.py (100%) rename tests/{unit_tests => regression_tests}/cad/dagmc.h5m (100%) rename tests/{unit_tests => regression_tests}/cad/materials.xml (100%) rename tests/{unit_tests => regression_tests}/cad/settings.xml (100%) rename tests/{unit_tests => regression_tests}/cad/tallies.xml (100%) rename tests/{unit_tests/cad/test_cad.py => regression_tests/cad/test.py} (100%) delete mode 100644 tests/unit_tests/cad/__init__.py diff --git a/tests/regression_tests/cad/__init__.py b/tests/regression_tests/cad/__init__.py new file mode 100644 index 0000000000..5871ed8eef --- /dev/null +++ b/tests/regression_tests/cad/__init__.py @@ -0,0 +1 @@ +import pytest diff --git a/tests/unit_tests/cad/conftest.py b/tests/regression_tests/cad/conftest.py similarity index 100% rename from tests/unit_tests/cad/conftest.py rename to tests/regression_tests/cad/conftest.py diff --git a/tests/unit_tests/cad/dagmc.h5m b/tests/regression_tests/cad/dagmc.h5m similarity index 100% rename from tests/unit_tests/cad/dagmc.h5m rename to tests/regression_tests/cad/dagmc.h5m diff --git a/tests/unit_tests/cad/materials.xml b/tests/regression_tests/cad/materials.xml similarity index 100% rename from tests/unit_tests/cad/materials.xml rename to tests/regression_tests/cad/materials.xml diff --git a/tests/unit_tests/cad/settings.xml b/tests/regression_tests/cad/settings.xml similarity index 100% rename from tests/unit_tests/cad/settings.xml rename to tests/regression_tests/cad/settings.xml diff --git a/tests/unit_tests/cad/tallies.xml b/tests/regression_tests/cad/tallies.xml similarity index 100% rename from tests/unit_tests/cad/tallies.xml rename to tests/regression_tests/cad/tallies.xml diff --git a/tests/unit_tests/cad/test_cad.py b/tests/regression_tests/cad/test.py similarity index 100% rename from tests/unit_tests/cad/test_cad.py rename to tests/regression_tests/cad/test.py diff --git a/tests/unit_tests/cad/__init__.py b/tests/unit_tests/cad/__init__.py deleted file mode 100644 index 59a520c12a..0000000000 --- a/tests/unit_tests/cad/__init__.py +++ /dev/null @@ -1,9 +0,0 @@ -import numpy as np -import pytest - - -def assert_unbounded(obj): - """Assert that a region/cell is unbounded.""" - ll, ur = obj.bounding_box - assert ll == pytest.approx((-np.inf, -np.inf, -np.inf)) - assert ur == pytest.approx((np.inf, np.inf, np.inf))