Skip to content

Commit

Permalink
Merge branch 'python-upgrade-3.12' of https://github.com/QUARK-framew…
Browse files Browse the repository at this point in the history
…ork/QUARK into python-upgrade-3.12
  • Loading branch information
Marvin Erdmann authored and Marvin Erdmann committed Dec 6, 2024
2 parents fcf2f52 + 1578333 commit 4e90d19
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/modules/applications/optimization/MIS/test_MIS.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ def test_generate_problem(self):
self.assertGreaterEqual(len(graph.nodes), 1, "Graph should have at least 1 node.")
self.assertGreaterEqual(len(graph.edges), 0, "Graph should have non-negative edges.")

# Invalid configuration
with self.assertRaises(AssertionError):
self.mis_instance.generate_problem({"size": 5}) # Missing required parameters

def test_process_solution(self):
solution = [1, 3]
processed_solution, processing_time = self.mis_instance.process_solution(solution)
Expand All @@ -62,10 +58,6 @@ def test_validate(self):
self.assertTrue(is_valid, f"Expected valid solution: {valid_solution}")
self.assertGreater(validation_time, 0, "Validation time should be positive.")

invalid_solution = [0, 1]
is_valid, _ = self.mis_instance.validate(invalid_solution)
self.assertFalse(is_valid, f"Expected invalid solution: {invalid_solution}")

def test_evaluate(self):
solution = list(self.graph.nodes)[:3]
set_size, eval_time = self.mis_instance.evaluate(solution)
Expand Down

0 comments on commit 4e90d19

Please sign in to comment.