Skip to content

Commit

Permalink
add assertion in test_auto_method
Browse files Browse the repository at this point in the history
  • Loading branch information
hhorii committed Mar 7, 2023
1 parent 8f9629a commit ff7deba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/terra/backends/aer_simulator/test_auto_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,7 @@ def test_auto_method_partial_result_a_single_invalid_circuit(self):
circuits.append(qc)
backend = self.backend()
shots = 100
result = backend.run(circuits, shots=shots).result()
result = backend.run(circuits, shots=shots, method='statevector').result()
self.assertEqual(result.status, 'PARTIAL COMPLETED')
self.assertTrue(hasattr(result.results[1].data, 'counts'))
self.assertFalse(hasattr(result.results[0].data, 'counts'))

0 comments on commit ff7deba

Please sign in to comment.