Pytest mutable object fixture.
Usage: def test_something(object): # mutate object as neededremotes/origin/enhancement/email-actions
parent
97943ee5ed
commit
e1fdc36301
|
@ -0,0 +1,12 @@
|
|||
from collections import namedtuple
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
class Object:
|
||||
pass
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def object():
|
||||
return Object()
|
Loading…
Reference in New Issue