Merge pull request #6544 from blueyed/doc-rm-costlysetup

doc: remove costlysetup example
This commit is contained in:
Daniel Hahler 2020-01-23 13:21:32 +01:00 committed by GitHub
commit 863bab5326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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