Skip to content

Commit

Permalink
molpro test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinp0 committed Nov 27, 2023
1 parent 230c6a0 commit 2252765
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion arc/job/adapters/molpro_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def test_memory_change(self):
self.assertEqual(self.job_4.input_file_memory, 4300)
self.assertEqual(self.job_4.cpu_cores, 1)


def test_set_input_file_memory(self):
"""Test setting the input_file_memory argument"""
self.job_1.input_file_memory = None
Expand Down Expand Up @@ -165,6 +164,14 @@ def test_write_input_file(self):
"""
self.assertEqual(content_2, job_2_expected_input_file)

def test_core_reduction_logic(self):
"""_summary_test_core_reduction_logic"""

# Reactive Job 3 again to trigger the condition of the core reduction logic
self.job_3.set_input_file_memory()
self.assertEqual(self.job_3.input_file_memory, 4296)
self.assertEqual(self.job_3.cpu_cores, 2)

def test_set_files(self):
"""Test setting files"""
job_1_files_to_upload = [{'file_name': 'submit.sub',
Expand Down

0 comments on commit 2252765

Please sign in to comment.