start reorganizing docs, write more docs, shift plugin docs, to proper documentation,
use sphinx, remove old docs ... work in progress. --HG-- branch : trunk
This commit is contained in:
1
example/funcarg/mysetup/__init__.py
Normal file
1
example/funcarg/mysetup/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# XXX this file should not need to be here but is here for proper sys.path mangling
|
||||
9
example/funcarg/mysetup/conftest.py
Normal file
9
example/funcarg/mysetup/conftest.py
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
from mysetup.myapp import MyApp
|
||||
|
||||
def pytest_funcarg__mysetup(request):
|
||||
return MySetup()
|
||||
|
||||
class MySetup:
|
||||
def myapp(self):
|
||||
return MyApp()
|
||||
5
example/funcarg/mysetup/myapp.py
Normal file
5
example/funcarg/mysetup/myapp.py
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
class MyApp:
|
||||
def question(self):
|
||||
return 6 * 9
|
||||
|
||||
5
example/funcarg/mysetup/test_sample.py
Normal file
5
example/funcarg/mysetup/test_sample.py
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
def test_answer(mysetup):
|
||||
app = mysetup.myapp()
|
||||
answer = app.question()
|
||||
assert answer == 42
|
||||
Reference in New Issue
Block a user