amazon-braket / amazon-braket-sdk-python

A Python SDK for interacting with quantum devices on Amazon Braket
https://aws.amazon.com/braket/
Apache License 2.0
294 stars 118 forks source link

infra: add offline unit tests #939

Open math411 opened 3 months ago

math411 commented 3 months ago

Issue #, if available:

Description of changes: On a plane and cannot connect to wifi? Developing new Quantum circuits in the middle of the woods and want to add in your code? Waterproofed your laptop for scuba diving but forgot an ethernet cable?

This code is being added so testing can be done without a stable internet connection in place. These tests are no considered acceptable for fully testing the code but can give a user some sense of confidence with changes.

Testing done:

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

Tests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (d5580dc) to head (66b846a).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #939 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 133 133 Lines 8901 8901 Branches 2004 2004 ========================================= Hits 8901 8901 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.