Skip to content

Commit e64fe48

Browse files
committed
Fixed tests
1 parent 96e4adb commit e64fe48

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,19 @@ language: python
33
sudo: false
44

55
python:
6-
- "3.5"
76
- "3.6"
7+
- "3.7"
88

99
install:
1010
- pip install tox
1111

1212
env:
1313
- TOXENV=quality
1414

15-
# Everything behaves under python 3.6 except python3.5
1615
matrix:
1716
include:
18-
- python: 3.5
19-
env: TOXENV=py35
17+
- python: 3.6
18+
env: TOXENV=py36
2019

2120
script:
2221
- tox -e $TOXENV

tests/test_04_key_jar.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,9 @@ def test_repr():
670670
kj['Bob'] = [KeyBundle(JWK1['keys'])]
671671
kj['C'] = [KeyBundle(JWK2['keys'])]
672672
txt = kj.__repr__()
673-
assert txt == "<KeyJar(issuers=['Alice', 'Bob', 'C'])>"
673+
assert "<KeyJar(issuers=[" in txt
674+
_d = eval(txt[16:-2])
675+
assert set(_d) == {'Alice', 'Bob', 'C'}
674676

675677

676678
def test_get_wrong_owner():

tests/test_05_jwx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_headers_jku():
9090

9191
def test_decode():
9292
jwx = JWx(cty='JWT')
93-
_msg = jwx._decode(b'eyJmb28iOiJiYXIifQ')
93+
_msg = jwx._decode('eyJmb28iOiJiYXIifQ')
9494
assert _msg == {'foo':'bar'}
9595

9696

0 commit comments

Comments
 (0)