From 624064825b447fe7742663252dc2a4230ebd7638 Mon Sep 17 00:00:00 2001 From: MoonTestUse1 Date: Sat, 4 Jan 2025 04:05:36 +0600 Subject: [PATCH] =?UTF-8?q?=D0=BC=D0=B8=D0=B3=D1=80=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B83322?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/tests/test_auth.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/app/tests/test_auth.py b/backend/app/tests/test_auth.py index 6e90441..14a659f 100644 --- a/backend/app/tests/test_auth.py +++ b/backend/app/tests/test_auth.py @@ -34,7 +34,6 @@ def test_login_success(test_db: Session): assert response.json()["token_type"] == "bearer" def test_login_wrong_password(test_db: Session): - # Создаем тестового сотрудника с известным паролем hashed_password = get_password_hash("testpass123") employee = employees.create_employee( test_db, @@ -49,12 +48,9 @@ def test_login_wrong_password(test_db: Session): response = client.post( "/api/auth/login", - data={ - "username": "WrongPass", - "password": "wrongpass" - } + data={"username": "WrongPass", + "password": "wrongpass"} ) - assert response.status_code == 401 assert "detail" in response.json()