File tree Expand file tree Collapse file tree 2 files changed +20
-21
lines changed
Expand file tree Collapse file tree 2 files changed +20
-21
lines changed Original file line number Diff line number Diff line change 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.")
Original file line number Diff line number Diff line change 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")
You can’t perform that action at this time.
0 commit comments