django-dynamic-fixture
django-dynamic-fixture copied to clipboard
Pass DDF models to pytest parametrize decorator
It would be awesome if we could have something like:
@pytest.mark.parametrize('db_object', [G(Model1), G(Model2)])
def test_foo(db_object):
...
Looks like there is some issue with the db init, would it be possible to make it work?
Bumping. It can be worked around with some if statements (ideally switch case in new python), but still pollutes the code notably.