Testing Django Applications with pytest

This time we're hosted by 5Monkeys Agency a software development firm based in Slussen, Stockholm.

Talks

Testing Django Applications with pytest

Django’s builtin testing tools are sometimes a bit cumbersome. This talk will show how to get started with testing in Django with pytest and how to make testing easier. Expect a lot of examples and general Django testing best practices.

A common problem with Django’s test runner is that it is hard to specify a subset of tests to run. Another issue can be the long time it takes to create database tables before each test run. Solutions to these and other common problems will be presented.

The talk will not be a tutorial of pytest itself, but it will show how some powerful features of pytest can help when writing Django tests. Some previous exposure to Django is recommended, but previous experience writing tests is not required. A couple of more advanced concepts will also be showed, which can be useful for people already into testing.

Andreas Pelme (@andreaspelme) - developer and cofounder at personalkollen.se

 

Hash tag: #djangosthlm
IRC: #pysthlm @ Freenode

Join or login to comment.

  • Frej C.

    Var det någon som tog bilder? Ni får gärna ladda upp det här i eventet. :)

    May 7, 2013

    • Andreas P.

      Jag hade en bild som jag har bidragit med nu i alla fall. :)

      1 · May 8, 2013

    • Henrik A.

      Jag laddade upp 4 bilder jag tog under kvällen! :)

      3 · May 8, 2013

  • Andreas P.

    Stort tack till Henrik, Frej och 5monkeys som arrangerade allting så bra! Intressanta diskussioner efteråt på open spaces även om jag var tvungen att springa iväg till tåget innan summeringen.

    Slides:
    https://speakerdeck.com/pelme/testing-applications-django-with-py-dot-test

    Bra platser att få hjälp om pytest/pytest-django:
    - #pylib på Freenode
    - http://mail.python.org/mailman/listinfo/pytest-dev

    All feedback är väldigt välkommen, skicka till [masked] eller skriv här. :)

    April 30, 2013

  • Frej C.

    Tack Andreas! Jag ska definitivt testa pytest-django nu. Tack också för att du tog tåget ändå från Linköping för att prata för oss. :)

    April 29, 2013

  • Henrik A.

    Hey everyone! There has been some questions so hopefully there is tile to read this before attending: 1) There will be food and drinks. 2) The talk(s) will start at roughly 18.00!

    1 · April 29, 2013

  • Lowe T.

    Coming down with a bad cold. I thought I might make it yesterday, but I won't. I hope the meetup will be awesome.

    April 29, 2013

    • Frej C.

      Take care!

      April 29, 2013

    • Tomas E.

      Thats to bad, get well. See you next time!

      April 29, 2013

  • Andreas K.

    YES

    April 28, 2013

  • Nicolas L.

    YES

    April 28, 2013

  • Tobias G.

    YES

    April 28, 2013

  • Tomas E.

    Yes

    April 28, 2013

  • Laurent P.

    Yes

    April 28, 2013

  • Erik V.

    Yes!

    April 28, 2013

  • Lowe T.

    Yes, attending!

    April 28, 2013

  • Andreas P.

    Yes :)

    April 28, 2013

  • Frej C.

    Hello! Remember to confirm your spot before 18:00 today. This also applies to everybody on the waiting list. Currently only 10 people have confirmed. Those of you that haven't confirmed before 18:00 today will be set to Not attending tonight.

    April 28, 2013

  • Peppe B.

    Had been great but have to prioritize my trips to sthlm :-(

    April 28, 2013

  • A former member
    A former member

    Yes

    April 26, 2013

  • Mikael A.

    Sorry other plans came up. Have a great meetup!

    April 26, 2013

  • Tomas E.

    I made it! See you monday!

    April 26, 2013

  • Laurent P.

    Yes, attending

    April 26, 2013

  • Fredrik H.

    Yes, attending

    April 25, 2013

  • Jonas E.

    Yes, I will attend

    April 25, 2013

  • Hassan M.

    Yes

    April 25, 2013

  • Tomas E.

    Great topic for this meetup! ;)

    3 · April 21, 2013

  • Per K.

    Good testing practices for Django is exactly what I need to know right now...

    1 · April 19, 2013

People in this
Meetup are also in:

Imagine having a community behind you

Get started Learn more
Rafaël

We just grab a coffee and speak French. Some people have been coming every week for months... it creates a kind of warmth to the group.

Rafaël, started French Conversation Group

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy