• Checked in at Starbucks Coffee 藀沒菖蒲沒店. A nice morning trip to Starbucks with the family. Leo has had his first yogurt and banana at Starbucks.

  • Checkin to Starbucks

    in Fujisawa, Kanagawa, Japan
    A nice morning trip to Starbucks with the family. Leo has had his first yogurt and banana at Starbucks.
  • Recent End to End Testing Preferences with Django

    When testing in Django there's two basic ways to make an End-to-End test for your view: use the test client to send a request to the server or create a fake request object and manually call your view function.

    One isn't "better" than the other, but I've come to prefer using the mock client over the fake request for the following reasons:


    1. Client tests hit the entire stack of code before executing your view allowing you to catch any conflicts with a middleware or settings and your view.

    2. Url Path tests come for free. When testing with fake request objects you can put any path you'd like in there and it will execute missing that bad merge where your url config change removing an endpoint.

    3. It's (slightly) easier to reason about. If I'm writing a test to confirm X happens when Y is posted I make Y and post it rather than making an object that pretends Y was posted.

    4. It removes the friction to refactor your views. As long as the url stays the same, you can rename and move your view however you'd like without changing any of the tests. This makes it easier to create a more consistent codebase e.g. some views use the verb "save" while others use "register".

  • Another post dinner walk to watch some trains.

  • Checked in at デニーズ ζΉ˜ε—ε°εΊ—. Gave in and let Leo have his first fry.

  • Checkin to Denny's (デニーズ)

    in Fujisawa, Kanagawa, Japan
    Gave in and let Leo have his first fry.
  • It was a hot one today πŸ₯΅Lovely after dinner walk to watch the trains come and go.


  • Checked in at Shake Shack. Went for a single this time. But it’s nice and warm outside. Perfect burger weather.

  • Checkin to Shake Shack

    in Shibuya, Tokyo, Japan
    Went for a single this time. But it’s nice and warm outside. Perfect burger weather.
  • Checked in at Starbucks (Starbucks Coffee)

Previous 197 of 359 Next