Skip to content

Commit 790537a

Browse files
committed
add unit test for disabling rms yaml writer on each iteration
1 parent 8e7392e commit 790537a

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

rmgpy/rmg/inputTest.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,19 @@ def test_importing_database_reaction_libraries_from_true_tuple(self):
9494
self.assertTrue(rmg.reaction_libraries[0][1])
9595

9696

97+
class TestRMSYAMLWriterDisable(unittest.TestCase):
98+
"""
99+
Default behavior of RMG is to enable so test ability to disable
100+
"""
101+
102+
def test_disable_rms_yaml_writer(self):
103+
"""
104+
generateRMSEachIter = False in input should set the corresponding property in RMG instance
105+
"""
106+
global rmg
107+
self.assertFalse(rmg.generate_rms_each_iter)
108+
109+
97110
class TestInputMLEstimator(unittest.TestCase):
98111
"""
99112
Contains unit tests rmgpy.rmg.input.mlEstimator

0 commit comments

Comments
 (0)