use `_get_resource_path` in grover test
@@ -26,10 +26,11 @@ from qiskit_aqua import get_algorithm_instance, get_oracle_instance
class TestGrover(QiskitAquaTestCase):
@parameterized.expand([
- ['test/test_grover_tiny.cnf', 1],
- ['test/test_grover.cnf', 2]
+ ['test_grover_tiny.cnf', 1],
+ ['test_grover.cnf', 2]
])
def test_grover(self, input_file, num_iterations=1):
+ input_file = self._get_resource_path(input_file)
self.log.debug('Testing Grover search with {} iteration(s) on SAT problem instance: \n{}'.format(
num_iterations, open(input_file).read(),
))
