From fac0e781f926af9d7695e7cab85de88bcb8fd916 Mon Sep 17 00:00:00 2001 From: curo1305 Date: Sat, 6 Jun 2026 16:50:32 +0200 Subject: [PATCH] =?UTF-8?q?test(07.3-01):=20extend=20test=5Fsettings=5Fhas?= =?UTF-8?q?=5Fjwt=5Fconfig=20=E2=80=94=20red=20until=20Plan=2002?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Assert settings.refresh_token_expire_hours == 16 (CFG-01 / D-09) - Assert hasattr(settings, "jwt_private_key") (CFG-01 / D-01) - Assert hasattr(settings, "jwt_public_key") (CFG-01 / D-01) - Existing refresh_token_expire_days == 30 assertion preserved (Pitfall 5) - Test intentionally fails until Plan 02 adds the three new config fields --- backend/tests/test_task1_models_config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/tests/test_task1_models_config.py b/backend/tests/test_task1_models_config.py index c833ff0..2144ec8 100644 --- a/backend/tests/test_task1_models_config.py +++ b/backend/tests/test_task1_models_config.py @@ -29,6 +29,10 @@ def test_settings_has_jwt_config(): assert settings.access_token_expire_minutes == 15 assert hasattr(settings, "refresh_token_expire_days") assert settings.refresh_token_expire_days == 30 + assert hasattr(settings, "refresh_token_expire_hours") + assert settings.refresh_token_expire_hours == 16 + assert hasattr(settings, "jwt_private_key") + assert hasattr(settings, "jwt_public_key") def test_settings_has_smtp_config():