Skip to content

Commit

Permalink
Updated tests to include perturbations.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanstwrt committed Oct 2, 2019
1 parent f65bb06 commit e32e19c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions fridge/test_suite/driver_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@

cur_dir = os.path.dirname(__file__)
mcnp_dir = os.path.join(cur_dir, '../mcnp_input_files/')
mcnp_test_dir = os.path.join(cur_dir, '../mcnp_input_files/Test_Inputs/')



def test_fridge_driver_singleAssembly():
"""Test that the new files gets made to the right directory"""
fd.main('A271_Assembly_Test')
knownTestFile = glob.glob(os.path.join(mcnp_dir, 'Prefab_Fuel_Assembly_Test.i'))
knownTestFile = glob.glob(os.path.join(mcnp_test_dir, 'Prefab_Fuel_Assembly_Test.i'))
testFile = glob.glob(os.path.join(mcnp_dir, 'Fuel_Assembly_Test.i'))
assert filecmp.cmp(testFile[0], knownTestFile[0]) is True


def test_fridge_driver_core():
"""Test that the new files gets made to the right directory"""
fd.main('Full_Core_Test')
knownTestFile = glob.glob(os.path.join(mcnp_dir, 'Prefab_Full_Core_Test.i'))
testFile = glob.glob(os.path.join(mcnp_dir, 'Prefab_Full_Core_Test.i'))
knownTestFile = glob.glob(os.path.join(mcnp_test_dir, 'Prefab_Full_Core_Test.i'))
testFile = glob.glob(os.path.join(mcnp_dir, 'Full_Core_Test.i'))
assert filecmp.cmp(testFile[0], knownTestFile[0]) is True
4 changes: 2 additions & 2 deletions fridge/test_suite/reactorMaker_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

global_vars = gb.GlobalVariables()
cur_dir = os.path.dirname(__file__)
mcnp_dir = os.path.join(cur_dir, '../mcnp_input_files/Test_Inputs')
mcnp_test_dir = os.path.join(cur_dir, '../mcnp_input_files/')
mcnp_dir = os.path.join(cur_dir, '../mcnp_input_files/')
mcnp_test_dir = os.path.join(cur_dir, '../mcnp_input_files/Test_Inputs/')


def test_singleAssembly_Fuel():
Expand Down

0 comments on commit e32e19c

Please sign in to comment.