Skip to content

Commit 720f68d

Browse files
committed
closer
1 parent 152b268 commit 720f68d

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ sudo: false
1515
install:
1616
- pip install -U pip
1717
- pip install -U tox coverage coveralls
18-
- pip install -U python-dateutil
1918
script:
2019
- tox
2120
after_success:

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ pycparser==2.19
2222
Pygments==2.3.1
2323
PyJWT==1.7.1
2424
pyparsing==2.3.0
25-
python-dateutil
2625
pytz==2018.7
2726
requests==2.21.0
2827
six==1.12.0

tests/test_view_decorators.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ def test_jwt_required(app):
6969
assert response.get_json() == {'msg': 'Only access tokens are allowed'}
7070

7171

72-
@pytest.mark.parametrize("delta_func", [timedelta, relativedelta])
73-
def test_fresh_jwt_required(app, delta_func):
72+
def test_fresh_jwt_required(app):
7473
jwtM = get_jwt_manager(app)
7574
url = '/fresh_protected'
7675

@@ -81,11 +80,11 @@ def test_fresh_jwt_required(app, delta_func):
8180
refresh_token = create_refresh_token('username')
8281
fresh_timed_access_token = create_access_token(
8382
identity='username',
84-
fresh=delta_func(minutes=5)
83+
fresh=timedelta(minutes=5)
8584
)
8685
stale_timed_access_token = create_access_token(
8786
identity='username',
88-
fresh=delta_func(minutes=-1)
87+
fresh=timedelta(minutes=-1)
8988
)
9089

9190
response = test_client.get(url, headers=make_headers(fresh_access_token))

0 commit comments

Comments
 (0)