Skip to content

Commit

Permalink
Fix incorrect assertion call
Browse files Browse the repository at this point in the history
  • Loading branch information
153957 committed May 5, 2024
1 parent 3900644 commit 1962b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sapphire/tests/test_qsub.py
Original file line number Diff line number Diff line change
@@ -79,7 +79,7 @@ def test_create_script(self, mock_chmod):
self.assertTrue(res_path.endswith('/his_hoi.sh'))
self.assertEqual(res_name, 'his_hoi.sh')
mock_file.assert_called_once_with(res_path, 'w')
mock_file().write.called_once_with(sentinel.script)
mock_file().write.assert_called_once_with(sentinel.script)
mock_chmod.assert_called_once_with(res_path, 0o774)


0 comments on commit 1962b70

Please sign in to comment.