Skip to content

Commit

Permalink
unit
Browse files Browse the repository at this point in the history
  • Loading branch information
SamFerracin committed Jul 30, 2024
1 parent 6190711 commit 5faca7d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/unit/test_noise_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ def test_run_program_inputs(self, task_type, options_type):

input_params = backend.service.run.call_args.kwargs["inputs"]
self.assertEqual(input_params["circuits"], [transpile(c) for c in self.circuits])
self.assertEqual(input_params["options"], self.dict_options)

expected = self.dict_options
expected["support_qiskit"] = True
self.assertEqual(input_params["options"], expected)

@combine(task_type=["circs", "pubs"])
def test_run_program_inputs_with_default_options(self, task_type):
Expand All @@ -91,7 +94,7 @@ def test_run_program_inputs_with_default_options(self, task_type):

input_params = backend.service.run.call_args.kwargs["inputs"]
self.assertEqual(input_params["circuits"], [transpile(c) for c in self.circuits])
self.assertEqual(input_params["options"], {})
self.assertEqual(input_params["options"], {"support_qiskit": True})

def test_run_program_inputs_with_no_learnable_layers(self):
"""Test a circuit with no learnable layers."""
Expand Down

0 comments on commit 5faca7d

Please sign in to comment.