Эндпоинты не работают
This commit is contained in:
20
tests/test_all_endpoints.py
Normal file
20
tests/test_all_endpoints.py
Normal file
@@ -0,0 +1,20 @@
|
||||
"""
|
||||
Основной файл для запуска всех тестов API эндпоинтов
|
||||
"""
|
||||
import pytest
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
# Добавляем путь к проекту для импорта модулей
|
||||
project_root = Path(__file__).parent.parent
|
||||
sys.path.insert(0, str(project_root / "python_parser"))
|
||||
|
||||
if __name__ == "__main__":
|
||||
# Запуск всех тестов
|
||||
pytest.main([
|
||||
__file__.replace("test_all_endpoints.py", ""),
|
||||
"-v", # подробный вывод
|
||||
"--tb=short", # короткий traceback
|
||||
"--color=yes", # цветной вывод
|
||||
"-x", # остановка на первой ошибке
|
||||
])
|
||||
Reference in New Issue
Block a user