Skip to content

Commit d19d232

Browse files
add url config
1 parent 18692a7 commit d19d232

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tensorcircuit/cloud/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tencent_base_url = "https://quantum.tencent.com/cloud/quk/"

tests/test_cloud.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
from tensorcircuit.cloud import apis, wrapper
1313
from tensorcircuit.results import counts
1414

15+
if "TC_CLOUD_TEST" not in os.environ:
16+
pytest.skip(allow_module_level=True)
17+
# skip on CI due to no token
18+
1519

1620
def test_get_token():
1721
print(apis.get_token(provider="Tencent"))

0 commit comments

Comments
 (0)