From 068497e9f031535d12116d9905c87fca63877d71 Mon Sep 17 00:00:00 2001 From: Leo <277007013+LeoR156@users.noreply.github.com> Date: Thu, 9 Jul 2026 09:52:11 +0500 Subject: [PATCH] Fix CI --- test_bot.py | 6 +++--- weather_utils.py | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test_bot.py b/test_bot.py index 2f6beb3..6098555 100644 --- a/test_bot.py +++ b/test_bot.py @@ -3,12 +3,12 @@ from weather_utils import get_weather_comment def test_weather_comment_hot(): # Проверяем, что при +30 будет "Жара! ☀️" - assert get_weather_comment(30) == "Жара!" + assert get_weather_comment(30) == "Жара! ☀️" def test_weather_comment_cold(): # Проверяем, что при -10 будет "Дубак! ❄️" - assert get_weather_comment(-10) == "Дубак" + assert get_weather_comment(-10) == "Дубак! ❄️" def test_weather_comment_normal(): # Проверяем промежуточное значение - assert get_weather_comment(15) == "Норма" + assert get_weather_comment(15) == "Нормальная погода ☁️" diff --git a/weather_utils.py b/weather_utils.py index f95b13a..dddb7c2 100644 --- a/weather_utils.py +++ b/weather_utils.py @@ -1,10 +1,10 @@ +# weather_utils.py + def get_weather_comment(temperature): - + """Возвращает текстовый комментарий и эмодзи в зависимости от температуры""" if temperature >= 25: - return "Жара!" - + return "Жара! ☀️" elif temperature <= 0: - return "Дубак" - + return "Дубак! ❄️" else: - return "Норма" + return "Нормальная погода ☁️"