- add a Package/dir level setup example

- make tox.ini's doc/regen use pytest release instead of dev version
This commit is contained in:
holger krekel
2012-11-07 11:11:40 +01:00
parent 476d210d09
commit ff0c75aa34
15 changed files with 182 additions and 84 deletions
+2 -2
View File
@@ -101,7 +101,7 @@ the ``self.db`` values in the traceback::
def test_method1(self):
assert hasattr(self, "db")
> assert 0, self.db # fail for demo purposes
E AssertionError: <conftest.DummyDB instance at 0x269e5a8>
E AssertionError: <conftest.DummyDB instance at 0x1766560>
test_unittest_db.py:9: AssertionError
___________________________ MyTest.test_method2 ____________________________
@@ -110,7 +110,7 @@ the ``self.db`` values in the traceback::
def test_method2(self):
> assert 0, self.db # fail for demo purposes
E AssertionError: <conftest.DummyDB instance at 0x269e5a8>
E AssertionError: <conftest.DummyDB instance at 0x1766560>
test_unittest_db.py:12: AssertionError
========================= 2 failed in 0.02 seconds =========================