added "docs/en" directory and moved

This commit is contained in:
t2y
2012-06-06 08:52:53 +09:00
parent 4d77653bb0
commit 9198069739
106 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
def pytest_funcarg__setup(request):
return request.cached_setup(
setup=lambda: CostlySetup(),
teardown=lambda costlysetup: costlysetup.finalize(),
scope="session",
)
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

@@ -0,0 +1 @@
#

View File

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

View File

@@ -0,0 +1 @@
#

View File

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