Skip to content

Commit

Permalink
add mock for Quantum_Neuron
Browse files Browse the repository at this point in the history
  • Loading branch information
YutoTakaki committed Aug 12, 2023
1 parent c0c2364 commit b782a59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/integ_tests/default_mocks/default_mocks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
def pre_run_inject(mock_utils):
print("This is inside default_mocks.py")

mocker = mock_utils.Mocker()
mock_utils.mock_default_device_calls(mocker)
mocker.set_create_job_result({"jobArn": "arn:aws:braket:us-east-1:000000:job/TestARN"})


def post_run(tb):
Expand Down
2 changes: 2 additions & 0 deletions test/integ_tests/textbook/Quantum_Neuron_mocks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
def pre_run_inject(mock_utils):
print("This is inside Quantum_Neuron_mocks.py")

mocker = mock_utils.Mocker()
mock_utils.mock_default_device_calls(mocker)
mocker.set_create_job_result({"jobArn": "arn:aws:braket:us-east-1:000000:job/TestARN"})
Expand Down

0 comments on commit b782a59

Please sign in to comment.