/
niceSOFT
/
python3-pytest
Обзор
Документация
Войти
/
niceSOFT
/
python3-pytest
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
testing/example_scripts/issue88_initial_file_multinodes/conftest.py
18 строк
387 B
Ronny Pfannschmidt
RFC: from __future__ import annotations + migrate
20 июн 2024, 12:03
20 июн 2024, 12:03
9295f9f
Код
Авторство
О чём код?
# mypy: allow-untyped-defs from __future__ import annotations import pytest class MyFile(pytest.File): def collect(self): return [MyItem.from_parent(name="hello", parent=self)] def pytest_collect_file(file_path, parent): return MyFile.from_parent(path=file_path, parent=parent) class MyItem(pytest.Item): def runtest(self): raise NotImplementedError()