Merge pull request #6544 from blueyed/doc-rm-costlysetup
doc: remove costlysetup example
This commit is contained in:
commit
863bab5326
|
@ -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
|
|
|
@ -1 +0,0 @@
|
||||||
#
|
|
|
@ -1,2 +0,0 @@
|
||||||
def test_quick(setup):
|
|
||||||
pass
|
|
|
@ -1 +0,0 @@
|
||||||
#
|
|
|
@ -1,6 +0,0 @@
|
||||||
def test_something(setup):
|
|
||||||
assert setup.timecostly == 1
|
|
||||||
|
|
||||||
|
|
||||||
def test_something_more(setup):
|
|
||||||
assert setup.timecostly == 1
|
|
Loading…
Reference in New Issue