From 721342fcb2c3feaf3d5552680dd813943eb0d04f Mon Sep 17 00:00:00 2001 From: Wojciech Bartosiak Date: Thu, 30 Mar 2017 23:18:21 +0100 Subject: [PATCH] Improved `exp` value calculation --- oidc_provider/tests/test_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oidc_provider/tests/test_utils.py b/oidc_provider/tests/test_utils.py index fd09c40..16c987a 100644 --- a/oidc_provider/tests/test_utils.py +++ b/oidc_provider/tests/test_utils.py @@ -7,6 +7,7 @@ from django.utils import timezone from oidc_provider.lib.utils.common import get_issuer from oidc_provider.lib.utils.token import create_id_token from oidc_provider.tests.app.utils import create_fake_user +from django.test import override_settings class Request(object): @@ -59,6 +60,7 @@ class TokenTest(TestCase): def setUp(self): self.user = create_fake_user() + @override_settings(OIDC_IDTOKEN_EXPIRE=600) def test_create_id_token(self): start_time = int(time.time()) login_timestamp = start_time - 1234