diff --git a/ooniapi/services/ooniauth/tests/conftest.py b/ooniapi/services/ooniauth/tests/conftest.py index d3bee2e5..8002cbf8 100644 --- a/ooniapi/services/ooniauth/tests/conftest.py +++ b/ooniapi/services/ooniauth/tests/conftest.py @@ -6,7 +6,6 @@ from ooniauth.common.config import Settings from ooniauth.common.dependencies import get_settings from ooniauth.dependencies import get_ses_client -from ooniauth.utils import hash_email_address from ooniauth.main import app diff --git a/ooniapi/services/ooniauth/tests/test_auth_v1.py b/ooniapi/services/ooniauth/tests/test_auth_v1.py index ab53da2c..df314e9a 100644 --- a/ooniapi/services/ooniauth/tests/test_auth_v1.py +++ b/ooniapi/services/ooniauth/tests/test_auth_v1.py @@ -35,7 +35,7 @@ def handle_starttag(self, tag, attrs): login_link = parser.links[0] token = parse_qs(urlparse(login_link).query)["token"][0] - assert len(token) > 300 + assert len(token) > 200 return token diff --git a/ooniapi/services/ooniauth/tests/test_auth_v2.py b/ooniapi/services/ooniauth/tests/test_auth_v2.py index 53fa9dda..ae8c673a 100644 --- a/ooniapi/services/ooniauth/tests/test_auth_v2.py +++ b/ooniapi/services/ooniauth/tests/test_auth_v2.py @@ -35,7 +35,7 @@ def handle_starttag(self, tag, attrs): login_link = parser.links[0] token = parse_qs(urlparse(login_link).query)["token"][0] - assert len(token) > 300 + assert len(token) > 200 return token