commit
3676da594c
|
@ -858,7 +858,7 @@ into a conftest.py file **without** using ``autouse``::
|
||||||
|
|
||||||
# content of conftest.py
|
# content of conftest.py
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def transact(self, request, db):
|
def transact(request, db):
|
||||||
db.begin()
|
db.begin()
|
||||||
yield
|
yield
|
||||||
db.rollback()
|
db.rollback()
|
||||||
|
|
Loading…
Reference in New Issue