[pypy-svn] buildbot default: add missing conftest

RonnyPfannschmidt commits-noreply at bitbucket.org
Wed Apr 20 15:53:27 CEST 2011


Author: Ronny Pfannschmidt <Ronny.Pfannschmidt at gmx.de>
Branch: 
Changeset: r464:9fe7b9130d3c
Date: 2011-04-19 12:29 +0200
http://bitbucket.org/pypy/buildbot/changeset/9fe7b9130d3c/

Log:	add missing conftest

diff --git a/bitbucket_hook/test/conftest.py b/bitbucket_hook/test/conftest.py
new file mode 100644
--- /dev/null
+++ b/bitbucket_hook/test/conftest.py
@@ -0,0 +1,16 @@
+from bitbucket_hook import hook
+
+def pytest_funcarg__mails(request):
+    return []
+
+
+def pytest_funcarg__monkeypatch(request):
+    mp =  request.getfuncargvalue('monkeypatch')
+    mails = request.getfuncargvalue('mails')
+    def send(from_, to, subject, body,test=False, mails=mails):
+        mails.append((from_, to, subject, body))
+    mp.setattr(hook, 'send', send)
+
+
+    return mp
+


More information about the Pypy-commit mailing list