Skip to content

Commit

Permalink
test flux exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Jun 25, 2024
1 parent 13797b3 commit e05ab6e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_flux_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,14 @@ def test_internal_memory(self):
self.assertFalse(f.done())
self.assertEqual(f.result(), np.array([5]))
self.assertTrue(f.done())

def test_interface_exception(self):
with self.assertRaises(ValueError):
flux_interface = FluxPythonInterface(executor=self.executor, oversubscribe=True)
flux_interface.bootup(command_lst=[])
with self.assertRaises(ValueError):
flux_interface = FluxPythonInterface(executor=self.executor)
flux_interface.bootup(command_lst=[], prefix_path="/path/to/conda/env")
with self.assertRaises(ValueError):
flux_interface = FluxPythonInterface(executor=self.executor)
flux_interface.bootup(command_lst=[], prefix_name="conda_env_name")

0 comments on commit e05ab6e

Please sign in to comment.