Skip to content

Clinton Blackburn

A series of first world problems

  • About
  • Photography
  • Podcasts

Tag: code

Counting calls to Django QuerySet methods

Yesterday, I spent some time working on a test that needed to verify the delete method was called a certain number of times for a Django model. In the past we have used the assertNumQueries() method, but it always comes with some flakiness/tediousness (especially if we have to worry about queries made by middleware and/or authentication […]

Read More…

October 6, 2017 Clinton BlackburnNo Comments

  • About
  • Photography
  • Podcasts

Decode Theme by Macho Themes

Recent Posts

  • Mother
  • happy birthday
  • Leaving Paradise
  • Counting calls to Django QuerySet methods
  • Serverless

Archives

  • December 2018
  • June 2018
  • November 2017
  • October 2017
  • August 2017
  • January 2017
  • September 2016
  • July 2016
  • June 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • July 2015
  • November 2014
  • September 2014
  • July 2014
  • June 2014
  • May 2014