From bb14db155cce7fde9212baa1256bb9ae6c112206 Mon Sep 17 00:00:00 2001 From: Christian Date: Thu, 16 Jul 2020 12:12:03 +0200 Subject: [PATCH] [tests] test password length check --- tests/conftest.py | 5 +++-- tests/test_api_hoods.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index b07c123..67020b3 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ # Copyright (C) 2020 by Thomas Lindner +# Copyright (C) 2020 by Christian Hagenest # # SPDX-License-Identifier: 0BSD @@ -45,7 +46,7 @@ def receive_email(monkeymodule): @fixture(scope='module') def register_token(client, receive_email): response = client.post( - '/api/admin/register/', json={'email': 'user', 'password': 'pass'} + '/api/admin/register/', json={'email': 'user', 'password': 'password'} ) assert response.status_code == status.HTTP_202_ACCEPTED return receive_email()['body'] @@ -60,7 +61,7 @@ def register_confirmed(client, register_token): @fixture(scope='module') def access_token(client, register_confirmed): response = client.post( - '/api/admin/login/', data={'username': 'user', 'password': 'pass'} + '/api/admin/login/', data={'username': 'user', 'password': 'password'} ) assert response.status_code == status.HTTP_200_OK return response.json()['access_token'] diff --git a/tests/test_api_hoods.py b/tests/test_api_hoods.py index 75ac065..b68845e 100644 --- a/tests/test_api_hoods.py +++ b/tests/test_api_hoods.py @@ -1,4 +1,4 @@ -# Copyright (C) 2020 by Christian +# Copyright (C) 2020 by Christian Hagenest # Copyright (C) 2020 by Thomas Lindner # # SPDX-License-Identifier: 0BSD