From 39a758f7b0806f2731d711047c9163972b239bea Mon Sep 17 00:00:00 2001 From: Apostolos Chalkis Date: Thu, 26 Sep 2024 13:32:34 +0300 Subject: [PATCH] fix errors in unit-tests for AlgorithmResult class --- test/test_algorithm_result.py | 6 ++++++ test/utils/test_set_batching.py | 0 2 files changed, 6 insertions(+) create mode 100644 test/utils/test_set_batching.py diff --git a/test/test_algorithm_result.py b/test/test_algorithm_result.py index d808b30db..f5ba44ad0 100644 --- a/test/test_algorithm_result.py +++ b/test/test_algorithm_result.py @@ -12,6 +12,8 @@ """Test AlgorithmResult""" +import unittest + from test import QiskitAlgorithmsTestCase from qiskit_optimization.algorithm_result import AlgorithmResult @@ -63,3 +65,7 @@ def test_combine_with_self_does_nothing(self): original_data = self.result1.data.copy() self.result1.combine(self.result1) self.assertEqual(self.result1.data, original_data) + + +if __name__ == "__main__": + unittest.main() diff --git a/test/utils/test_set_batching.py b/test/utils/test_set_batching.py new file mode 100644 index 000000000..e69de29bb