Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Nov 15, 2024
1 parent 93bd0be commit 5cce4fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tests/test_dependencies_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ def test_executor_dependency_plot(self):
self.assertEqual(len(nodes), 5)
self.assertEqual(len(edges), 4)

def test_create_executor_error(self):
with self.assertRaises(ValueError):
create_executor(backend="toast", resource_dict={"cores": 1})

def test_dependency_steps(self):
cloudpickle_register(ind=1)
fs1 = Future()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_shared_input_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_check_pmi(self):
with self.assertRaises(ValueError):
check_pmi(backend="test", pmi="test")
with self.assertRaises(ValueError):
check_pmi(backend="flux", pmi="test")
check_pmi(backend="flux_allocation", pmi="test")

def test_check_nested_flux_executor(self):
with self.assertRaises(ValueError):
Expand Down

0 comments on commit 5cce4fc

Please sign in to comment.