/
mialdr
/
python_advanced
Обзор
Документация
Войти
/
mialdr
/
python_advanced
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
module_29_testing/lessons/2/test_functions.py
32 строки
460 B
viacheslav_kosenko
Add folder's
17 мар 2024, 09:59
17 мар 2024, 09:59
a7c8dd0
Код
Авторство
О чём код?
import math import pytest def test_new_test(): assert True @pytest.mark.math def test_math_sqrt(): num = 25 assert math.sqrt(num) == 5 def test_uppercase(): assert "skillbox".upper() == "SKILLBOX" def test_item_in_list(): assert 777 in [item for item in [111, 222, 333, 777]] @pytest.mark.math def test_math_square(): x = 5 assert x * x == 25 @pytest.mark.math def test_math_division(): x = 5 assert x // 2 == 2