doc: remove costlysetup example

It is not included with docs, and
`example/costlysetup/sub_a/test_quick.py::test_quick` sleeps for 5s,
slowing down `doctesting` unnecessarily.
This commit is contained in:
Daniel Hahler 2020-01-23 12:23:30 +01:00
parent 10e243d206
commit b63cb18776
5 changed files with 0 additions and 30 deletions

View File

@ -1,20 +0,0 @@
import pytest
@pytest.fixture(scope="session")
def setup(request):
setup = CostlySetup()
yield setup
setup.finalize()
class CostlySetup:
def __init__(self):
import time
print("performing costly setup")
time.sleep(5)
self.timecostly = 1
def finalize(self):
del self.timecostly

View File

@ -1 +0,0 @@
#

View File

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

View File

@ -1 +0,0 @@
#

View File

@ -1,6 +0,0 @@
def test_something(setup):
assert setup.timecostly == 1
def test_something_more(setup):
assert setup.timecostly == 1