Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashaener committed Oct 3, 2017
1 parent 4a3ce44 commit 4f0d5d4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions projectq/backends/_ibm/_ibm_http_client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ def raise_for_status(self):
request_num[0] == 2):
request_num[0] += 1
return MockPostResponse({"id": execution_id})
else:
print(kwargs)

monkeypatch.setattr("requests.get", mocked_requests_get)
monkeypatch.setattr("requests.post", mocked_requests_post)
Expand Down Expand Up @@ -210,7 +208,7 @@ def user_password_input(prompt):
json_qasm = "my_json_qasm"
name = 'projectq_test'
_ibm_http_client.send(json_qasm,
device="real",
device="ibmqx2",
user=None, password=None,
shots=shots, verbose=True)

Expand Down Expand Up @@ -251,7 +249,7 @@ def user_password_input(prompt):
json_qasm = "my_json_qasm"
name = 'projectq_test'
_ibm_http_client.send(json_qasm,
device="real",
device="ibmqx2",
user=None, password=None,
shots=shots, verbose=True)

Expand Down Expand Up @@ -292,6 +290,6 @@ def user_password_input(prompt):
json_qasm = "my_json_qasm"
name = 'projectq_test'
_ibm_http_client.send(json_qasm,
device="real",
device="ibmqx2",
user=None, password=None,
shots=shots, verbose=True)

0 comments on commit 4f0d5d4

Please sign in to comment.