From 2673880a9c95f710d531a67598119280be2dbe0e Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Fri, 29 Sep 2017 11:09:50 -0500 Subject: [PATCH] Move test_element_wo to unit tests --- tests/{test_element_wo => unit_tests}/test_element_wo.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) rename tests/{test_element_wo => unit_tests}/test_element_wo.py (92%) diff --git a/tests/test_element_wo/test_element_wo.py b/tests/unit_tests/test_element_wo.py similarity index 92% rename from tests/test_element_wo/test_element_wo.py rename to tests/unit_tests/test_element_wo.py index e2a5726f19..7b9487f73d 100644 --- a/tests/test_element_wo/test_element_wo.py +++ b/tests/unit_tests/test_element_wo.py @@ -5,13 +5,11 @@ import sys import numpy as np -sys.path.insert(0, os.pardir) -sys.path.insert(0, os.path.join(os.pardir, os.pardir)) from openmc import Material from openmc.data import NATURAL_ABUNDANCE, atomic_mass -if __name__ == '__main__': +def test_element_wo(): # This test doesn't require an OpenMC run. We just need to make sure the # element.expand() method expands elements with the proper nuclide # compositions.