Skip to content

Commit 4649c8d

Browse files
committed
remove test - debug
1 parent fa4fc7b commit 4649c8d

File tree

2 files changed

+20
-21
lines changed

2 files changed

+20
-21
lines changed

tests/basic_auth_qa.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import sys
1+
# import sys
22

3-
import superannotate as sa
3+
# import superannotate as sa
44

5-
try:
6-
sa.init(sys.argv[1])
7-
except sa.SABaseException as e:
8-
if e.message == "Couldn't authorize":
9-
print("Couldn't authorize.")
10-
sys.exit(1)
11-
else:
12-
print("Authorized.")
5+
# try:
6+
# sa.init(sys.argv[1])
7+
# except sa.SABaseException as e:
8+
# if e.message == "Couldn't authorize":
9+
# print("Couldn't authorize.")
10+
# sys.exit(1)
11+
# else:
12+
# print("Authorized.")

tests/test_auth.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
from pathlib import Path
1+
# from pathlib import Path
22

3-
import superannotate as sa
3+
# import superannotate as sa
44

5-
6-
def test_basic_auth():
7-
try:
8-
sa.init(Path("tests") / "config__wrong.json")
9-
except sa.SABaseException as e:
10-
assert e.message == 'Couldn\'t authorize {"error":"Not authorized."}'
11-
else:
12-
assert False
13-
sa.init(Path.home() / ".superannotate" / "config.json")
5+
# def test_basic_auth():
6+
# try:
7+
# sa.init(Path("tests") / "config__wrong.json")
8+
# except sa.SABaseException as e:
9+
# assert e.message == 'Couldn\'t authorize {"error":"Not authorized."}'
10+
# else:
11+
# assert False
12+
# sa.init(Path.home() / ".superannotate" / "config.json")

0 commit comments

Comments
 (0)