121 days ago · Tech · hide · Fediverse post

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…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town