[Fixed]-Django-pytest: AssertionError

1👍

Make sure, that you have data in your test DB first. You can do it with debugger, just insert pytest.set_trace() in your code and then invoke your query Question.objects.all() by hand. Also, check DATABASES setting in your test configuration.

Leave a comment