Skip to content

Commit 2252765

Browse files
committed
molpro test updates
1 parent 230c6a0 commit 2252765

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

arc/job/adapters/molpro_test.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def test_memory_change(self):
8484
self.assertEqual(self.job_4.input_file_memory, 4300)
8585
self.assertEqual(self.job_4.cpu_cores, 1)
8686

87-
8887
def test_set_input_file_memory(self):
8988
"""Test setting the input_file_memory argument"""
9089
self.job_1.input_file_memory = None
@@ -165,6 +164,14 @@ def test_write_input_file(self):
165164
"""
166165
self.assertEqual(content_2, job_2_expected_input_file)
167166

167+
def test_core_reduction_logic(self):
168+
"""_summary_test_core_reduction_logic"""
169+
170+
# Reactive Job 3 again to trigger the condition of the core reduction logic
171+
self.job_3.set_input_file_memory()
172+
self.assertEqual(self.job_3.input_file_memory, 4296)
173+
self.assertEqual(self.job_3.cpu_cores, 2)
174+
168175
def test_set_files(self):
169176
"""Test setting files"""
170177
job_1_files_to_upload = [{'file_name': 'submit.sub',

0 commit comments

Comments
 (0)