Skip to content
All lessons

Tech Insights

TIL: if you need to use both override_flag (django-waffle) and either django_assert_num_queries (pytest-django) or assertNumQ...

TIL: if you need to use both override_flag (django-waffle) and either django_assert_num_queries (pytest-django) or assertNumQueries (django testcase), make sure to have override_flags being put first or you'll end up tainting your number of queries assertion with those from flag value override

Shared by

  • Django
  • Django Waffle
  • Pytest
  • Testing

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us