Skip to content

Commit 3b8a18f

Browse files
committed
Got all tests working
1 parent 33df4c8 commit 3b8a18f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_5_jwt.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,11 @@ def test_jwt_pack_encrypt():
7474

7575

7676
def test_jwt_pack_unpack_sym():
77-
_sym_key = SYMKey('hemligt ord')
77+
_sym_key = SYMKey(key='hemligt ord', use='sig')
7878
alice = JWT(own_keys=[_sym_key], iss=ALICE, sign_alg="HS256")
7979
payload = {'sub': 'sub2'}
8080
_jwt = alice.pack(payload=payload)
8181

82-
bob = JWT(own_keys=[SYMKey('hemligt ord')], iss=BOB,
83-
rec_keys={ALICE: [_sym_key]})
82+
bob = JWT(own_keys=None, iss=BOB, rec_keys={ALICE: [_sym_key]})
8483
info = bob.unpack(_jwt)
8584
assert info

0 commit comments

Comments
 (0)