Closed joaquimds closed 2 years ago
Firstly, thanks for maintaining such a powerful and useful testing library for Django.
On to the bug:
Example:
@pytest.mark.django_db(reset_sequences=True) def test_reset_sequences(): assert True
Output:
ERROR my_test.py::test_reset_sequences - AssertionError: reset_sequences cannot be used on TestCase instances
It's missing transaction=True. Needs a better error message.
transaction=True
Did it work on pytest-django 4.4.0? If yes, then I'll make it work again.
Thanks for the fast response! Yes it works on 4.5.0
Firstly, thanks for maintaining such a powerful and useful testing library for Django.
On to the bug:
Example:
Output: