port some acceptance tests over to copy_example

This commit is contained in:
Ronny Pfannschmidt
2018-06-26 22:59:40 +02:00
parent 0672bc633f
commit e860ff7299
6 changed files with 29 additions and 20 deletions

View File

@@ -0,0 +1,4 @@
def pytest_configure(config):
import pytest
raise pytest.UsageError("hello")

View File

@@ -0,0 +1,14 @@
import pytest
class MyFile(pytest.File):
def collect(self):
return [MyItem("hello", parent=self)]
def pytest_collect_file(path, parent):
return MyFile(path, parent)
class MyItem(pytest.Item):
pass

View File

@@ -0,0 +1,2 @@
def test_hello():
pass