pytest2/testing/example_scripts/fixtures/custom_item/conftest.py

12 lines
197 B
Python

# -*- coding: utf-8 -*-
import pytest
class CustomItem(pytest.Item, pytest.File):
def runtest(self):
pass
def pytest_collect_file(path, parent):
return CustomItem(path, parent)