51 minutes ago · Tech · hide · 0 comments

You're running pytest in your Django project and are testing your project with pytest-django. You've recently changed how your view code works and use the django_assert_num_queries fixture. This fixture now outputs a lot of errors because the query counts are off. Here's an example: ============================= test session starts ============================== platform darwin -- Python 3.13.12, pytest-9.0.3, pluggy-1.5.0 django: settings: projectify.settings.test (from ini), configuration: Test (from ini) rootdir: /Users/debian/projects/projectify/monorepo configfile: pyproject.toml plugins: cov-5.0.0, Faker-19.13.0, xdist-3.3.1, django-4.5.2 collected 381 items / 371 deselected / 10 selected run-last-failure: rerun previous 10 failures projectify/workspace/test/views/test_project.py FF =================================== FAILURES =================================== ________________ TestProjectDetailView.test_get_project_detail _________________ […] > with…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.