Skip to content
Snippets Groups Projects
Verified Commit d256f53b authored by Martin Weise's avatar Martin Weise
Browse files
parent 4242f1b2
No related branches found
No related tags found
3 merge requests!387Wrong model,!384Wrong model,!381Wrong model
...@@ -23,7 +23,7 @@ class JwtTest(unittest.TestCase): ...@@ -23,7 +23,7 @@ class JwtTest(unittest.TestCase):
'roles': roles 'roles': roles
} }
} }
with open('test/rsa/rs256.key', 'rb') as fh: with open('tests/rsa/rs256.key', 'rb') as fh:
return jwt.JWT().encode(claims, jwt.jwk_from_pem(fh.read()), alg='RS256') return jwt.JWT().encode(claims, jwt.jwk_from_pem(fh.read()), alg='RS256')
def test_obtain_user_token_succeeds(self): def test_obtain_user_token_succeeds(self):
......
...@@ -61,7 +61,7 @@ class JwtTest(unittest.TestCase): ...@@ -61,7 +61,7 @@ class JwtTest(unittest.TestCase):
'roles': roles 'roles': roles
} }
} }
with open('test/rsa/rs256.key', 'rb') as fh: with open('tests/rsa/rs256.key', 'rb') as fh:
return jwt.JWT().encode(claims, jwt.jwk_from_pem(fh.read()), alg='RS256') return jwt.JWT().encode(claims, jwt.jwk_from_pem(fh.read()), alg='RS256')
def test_update_database_media_type_fails(self): def test_update_database_media_type_fails(self):
......
...@@ -25,7 +25,7 @@ class JwtTest(unittest.TestCase): ...@@ -25,7 +25,7 @@ class JwtTest(unittest.TestCase):
'roles': roles 'roles': roles
} }
} }
with open('test/rsa/rs256.key', 'rb') as fh: with open('tests/rsa/rs256.key', 'rb') as fh:
return jwt.JWT().encode(claims, jwt.jwk_from_pem(fh.read()), alg='RS256') return jwt.JWT().encode(claims, jwt.jwk_from_pem(fh.read()), alg='RS256')
def test_verify_token_no_token_fails(self): def test_verify_token_no_token_fails(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment