Skip to content

Commit c8d5556

Browse files
fix jwt tests
1 parent 8dd1570 commit c8d5556

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_jwtAuth.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import json
44

55
from pyTigerGraphUnitTest import make_connection
6-
from pyTigerGraph import TigerGraphConnection, pyTigerGraphException
6+
from pyTigerGraph import TigerGraphConnection
7+
from pyTigerGraph.pyTigerGraphException import TigerGraphException
78

89

910
class TestJWTTokenAuth(unittest.TestCase):
@@ -43,7 +44,7 @@ def _requestJWTToken(self):
4344

4445

4546
def _test_jwtauth_3_9(self):
46-
with self.assertRaises(pyTigerGraphException) as context:
47+
with self.assertRaises(TigerGraphException) as context:
4748
TigerGraphConnection(
4849
host=self.conn.host,
4950
jwtToken="fake.JWT.Token"
@@ -79,7 +80,7 @@ def _test_jwtauth_4_1_success(self):
7980

8081

8182
def _test_jwtauth_4_1_fail(self):
82-
with self.assertRaises(pyTigerGraphException) as context:
83+
with self.assertRaises(TigerGraphException) as context:
8384
TigerGraphConnection(
8485
host=self.conn.host,
8586
jwtToken="invalid.JWT.Token"

0 commit comments

Comments
 (0)