Pytest mutable object fixture.

Usage:
        def test_something(object):
            # mutate object as needed
remotes/origin/enhancement/email-actions
Anler Hp 2014-05-20 15:54:51 +02:00 committed by David Barragán Merino
parent 97943ee5ed
commit e1fdc36301
1 changed files with 12 additions and 0 deletions

12
tests/conftest.py Normal file
View File

@ -0,0 +1,12 @@
from collections import namedtuple
import pytest
class Object:
pass
@pytest.fixture
def object():
return Object()