From 5cce4fc45e8c616d8eb8b22c94b233efcfbd42fc Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Fri, 15 Nov 2024 22:21:56 +0100 Subject: [PATCH] Add more tests --- tests/test_dependencies_executor.py | 4 ++++ tests/test_shared_input_check.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_dependencies_executor.py b/tests/test_dependencies_executor.py index cfcf0733..d3ddeb9a 100644 --- a/tests/test_dependencies_executor.py +++ b/tests/test_dependencies_executor.py @@ -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() diff --git a/tests/test_shared_input_check.py b/tests/test_shared_input_check.py index b1b18b60..7ba84f71 100644 --- a/tests/test_shared_input_check.py +++ b/tests/test_shared_input_check.py @@ -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):