/
therealyou
/
python-code-check-system
Обзор
Документация
Войти
/
therealyou
/
python-code-check-system
Код
Запросы
1
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/test_core.py
10 строк
368 B
Artem_dev
split up `check.py` into core and test-core files (#26)
05 фев 2024, 19:00
Не верифицирован
05 фев 2024, 19:00
c319724
Код
Авторство
О чём код?
from pathlib import Path from core import check import pytest BASE_DIR = Path(__file__).resolve().parent.parent @pytest.mark.parametrize("filepath, tests, expected_result", [(f"{BASE_DIR}/src/main.py",[("1", "1", "2"), ("2", "2", "4"), ("3", "4", "7")], True)]) def test_check(filepath, tests, expected_result): assert check(filepath, tests) == expected_result