Skip to content

Commit

Permalink
Minor: Consistent style of file ending throughout Arkane's tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alongd committed Aug 12, 2019
1 parent 34b5ab1 commit 05824e0
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 3 deletions.
2 changes: 2 additions & 0 deletions arkane/commonTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,5 +433,7 @@ def test_get_mass(self):
self.assertEquals(get_element_mass('Bk'), (247.0703073, 97)) # test a two-element array (no isotope data)


################################################################################

if __name__ == '__main__':
unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))
2 changes: 2 additions & 0 deletions arkane/explorerTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,7 @@ def test_job_rxns(self):
self.assertIn(rxn, self.explorerjob.networks[0].pathReactions)


################################################################################

if __name__ == '__main__':
unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))
2 changes: 2 additions & 0 deletions arkane/gaussianTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,7 @@ def testDetermineQMSoftware(self):
self.assertIsInstance(log, GaussianLog)


################################################################################

if __name__ == '__main__':
unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))
2 changes: 1 addition & 1 deletion arkane/inputTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ def test_process_model_chemistry(self):
with self.assertRaises(InputError):
process_model_chemistry('CCSD(T)-F12a/aug-cc-pVTZ//CCSD(T)-F12a/aug-cc-pVTZ//B3LYP/6-311++G(3df,3pd)')

################################################################################

################################################################################

if __name__ == '__main__':
unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))
2 changes: 2 additions & 0 deletions arkane/kineticsTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,7 @@ def test_get_tlist_for_kineticsjob(self):
inverse_tlist[-1] - inverse_tlist[-2]))


################################################################################

if __name__ == '__main__':
unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))
2 changes: 2 additions & 0 deletions arkane/mainTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,7 @@ def tearDownClass(cls):
shutil.rmtree(item_path)


################################################################################

if __name__ == '__main__':
unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))
3 changes: 3 additions & 0 deletions arkane/molproTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,8 @@ def test_get_T1_diagnostic(self):
t1_diagnostic = log.get_T1_diagnostic()
self.assertAlmostEqual(t1_diagnostic, 0.01152184)


################################################################################

if __name__ == '__main__':
unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))
6 changes: 6 additions & 0 deletions arkane/pdepTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,9 @@ def tearDown(cls):
for f in files:
if 'pdep_sa' not in f:
os.remove(os.path.join(settings['test_data.directory'], 'arkane', 'tst1', f))


################################################################################

if __name__ == '__main__':
unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))
2 changes: 2 additions & 0 deletions arkane/qchemTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,7 @@ def testLoadCOModesFromQChemLog(self):
self.assertTrue(len([mode for mode in conformer.modes if isinstance(mode, HinderedRotor)]) == 0)


################################################################################

if __name__ == '__main__':
unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))
2 changes: 0 additions & 2 deletions arkane/thermoTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ def test_element_count_from_conformer(self):
self.assertEqual(element_count, {'H': 4, 'C': 2})



################################################################################


if __name__ == '__main__':
unittest.main(testRunner=unittest.TextTestRunner(verbosity=2))

0 comments on commit 05824e0

Please sign in to comment.