SlideShare a Scribd company logo
Submit Search
Upload
Tdd with-python-and-django
Report
Share
Flavian Missi
Software Developer at Orange Cyberdefense
Follow
•
2 likes
•
1,891 views
1
of
26
Tdd with-python-and-django
•
2 likes
•
1,891 views
Report
Share
Download Now
Download to read offline
Software
Talk I gave at PyCon Sweden 2015
Read more
Flavian Missi
Software Developer at Orange Cyberdefense
Follow
Recommended
Acceptance Test Driven Development and Robot Framework by
Acceptance Test Driven Development and Robot Framework
Steve Zhang
4.2K views
•
17 slides
Tdd in php a brief example by
Tdd in php a brief example
Jeremy Kendall
2.1K views
•
16 slides
Tdd com Java by
Tdd com Java
Rafael Miceli
563 views
•
17 slides
Code review by
Code review
dqpi
2K views
•
19 slides
Code Review by
Code Review
Lukas Rypl
778 views
•
27 slides
Binary Studio Academy: .NET Code Testing by
Binary Studio Academy: .NET Code Testing
Binary Studio
261 views
•
16 slides
More Related Content
What's hot
Code review by
Code review
Abhishek Sur
5K views
•
19 slides
Tdd on play framework by
Tdd on play framework
vuhaininh88
370 views
•
23 slides
Speed up your tests by
Speed up your tests
Devi Sridharan
258 views
•
12 slides
Code Review by
Code Review
R M Shahidul Islam Shahed
191 views
•
17 slides
TDD with Ruby by
TDD with Ruby
Ismael G Marín C
98 views
•
10 slides
Code Review by
Code Review
Divante
773 views
•
12 slides
What's hot
(19)
Code review by Abhishek Sur
Code review
Abhishek Sur
•
5K views
Tdd on play framework by vuhaininh88
Tdd on play framework
vuhaininh88
•
370 views
Speed up your tests by Devi Sridharan
Speed up your tests
Devi Sridharan
•
258 views
Code Review by R M Shahidul Islam Shahed
Code Review
R M Shahidul Islam Shahed
•
191 views
TDD with Ruby by Ismael G Marín C
TDD with Ruby
Ismael G Marín C
•
98 views
Code Review by Divante
Code Review
Divante
•
773 views
Code Review for iOS by KLabCyscorpions-TechBlog
Code Review for iOS
KLabCyscorpions-TechBlog
•
4.4K views
Code Review by Tu Hoang
Code Review
Tu Hoang
•
1.2K views
eXtreme readable Acceptance Testing by Alex Fernandez
eXtreme readable Acceptance Testing
Alex Fernandez
•
111 views
Test Driven Development Powered by LEGO by Agile Montréal
Test Driven Development Powered by LEGO
Agile Montréal
•
1.4K views
Testing the untestable by RoyKlein
Testing the untestable
RoyKlein
•
990 views
Introduction to TDD and Mocking by saeed shargi ghazani
Introduction to TDD and Mocking
saeed shargi ghazani
•
4K views
Code Review: How and When by Paul Gower
Code Review: How and When
Paul Gower
•
326 views
Code Review Best Practices by Trisha Gee
Code Review Best Practices
Trisha Gee
•
4.3K views
Debugging C# Applications by Jaliya Udagedara
Debugging C# Applications
Jaliya Udagedara
•
1.9K views
TDD with RSpec by Rachid Calazans
TDD with RSpec
Rachid Calazans
•
325 views
Performance profiling and testing of symfony application 2 by Andrew Yatsenko
Performance profiling and testing of symfony application 2
Andrew Yatsenko
•
1.6K views
Code Review: How and When by Paul Gower
Code Review: How and When
Paul Gower
•
687 views
Code Review by Mikalai Alimenkou
Code Review
Mikalai Alimenkou
•
9K views
Similar to Tdd with-python-and-django
Tdd red-green-refactor by
Tdd red-green-refactor
Francisco Iglesias Gómez
244 views
•
22 slides
Test-Driven Development Reference Card by
Test-Driven Development Reference Card
Seapine Software
557 views
•
2 slides
Test Driven Development and Automation by
Test Driven Development and Automation
Mahesh Salaria
4.5K views
•
27 slides
Test Driven Development by
Test Driven Development
bhochhi
342 views
•
17 slides
Effective TDD - Less is more by
Effective TDD - Less is more
Ben Lau
1.6K views
•
35 slides
Test Driven Development by
Test Driven Development
Sachithra Gayan
1.8K views
•
15 slides
Similar to Tdd with-python-and-django
(20)
Tdd red-green-refactor by Francisco Iglesias Gómez
Tdd red-green-refactor
Francisco Iglesias Gómez
•
244 views
Test-Driven Development Reference Card by Seapine Software
Test-Driven Development Reference Card
Seapine Software
•
557 views
Test Driven Development and Automation by Mahesh Salaria
Test Driven Development and Automation
Mahesh Salaria
•
4.5K views
Test Driven Development by bhochhi
Test Driven Development
bhochhi
•
342 views
Effective TDD - Less is more by Ben Lau
Effective TDD - Less is more
Ben Lau
•
1.6K views
Test Driven Development by Sachithra Gayan
Test Driven Development
Sachithra Gayan
•
1.8K views
Test-Driven Development In Action by Jon Kruger
Test-Driven Development In Action
Jon Kruger
•
4.4K views
Pair programming and introduction to TDD by Arati Joshi
Pair programming and introduction to TDD
Arati Joshi
•
58 views
Simple testable code by felixtrepanier
Simple testable code
felixtrepanier
•
1.5K views
Understanding Why Testing is Importaint by Sana Nasar
Understanding Why Testing is Importaint
Sana Nasar
•
694 views
Real Developers Don't Need Unit Tests by John Ferguson Smart Limited
Real Developers Don't Need Unit Tests
John Ferguson Smart Limited
•
4.4K views
Test Driven Development by Kumaresh Chandra Baruri
Test Driven Development
Kumaresh Chandra Baruri
•
421 views
TDD Basics with Angular.js and Jasmine by Luis Sánchez Castellanos
TDD Basics with Angular.js and Jasmine
Luis Sánchez Castellanos
•
15.2K views
Workshop quality assurance for php projects - phpdublin by Michelangelo van Dam
Workshop quality assurance for php projects - phpdublin
Michelangelo van Dam
•
2.3K views
TDD in PHP - Memphis PHP 2011-08-25 by Jeremy Kendall
TDD in PHP - Memphis PHP 2011-08-25
Jeremy Kendall
•
1.5K views
Joe Cisar - Everything I Know About TDD - Agile Midwest 2019 by Jason Tice
Joe Cisar - Everything I Know About TDD - Agile Midwest 2019
Jason Tice
•
132 views
Test Driven Development by jakubkoci
Test Driven Development
jakubkoci
•
284 views
Tdd is not about testing (C++ version) by Gianluca Padovani
Tdd is not about testing (C++ version)
Gianluca Padovani
•
325 views
Test Driven Development with Laravel by Tyler Johnston
Test Driven Development with Laravel
Tyler Johnston
•
329 views
Python and test by Micron Technology
Python and test
Micron Technology
•
513 views
More from Flavian Missi
Profiling em Python by
Profiling em Python
Flavian Missi
713 views
•
58 slides
Tsuru - plataforma de cloud computing open source by
Tsuru - plataforma de cloud computing open source
Flavian Missi
885 views
•
40 slides
Django class based-views by
Django class based-views
Flavian Missi
665 views
•
8 slides
Rails::Engine by
Rails::Engine
Flavian Missi
800 views
•
17 slides
Modularizing Rails Apps with Cells by
Modularizing Rails Apps with Cells
Flavian Missi
1.7K views
•
15 slides
Capybara by
Capybara
Flavian Missi
1.9K views
•
21 slides
More from Flavian Missi
(6)
Profiling em Python by Flavian Missi
Profiling em Python
Flavian Missi
•
713 views
Tsuru - plataforma de cloud computing open source by Flavian Missi
Tsuru - plataforma de cloud computing open source
Flavian Missi
•
885 views
Django class based-views by Flavian Missi
Django class based-views
Flavian Missi
•
665 views
Rails::Engine by Flavian Missi
Rails::Engine
Flavian Missi
•
800 views
Modularizing Rails Apps with Cells by Flavian Missi
Modularizing Rails Apps with Cells
Flavian Missi
•
1.7K views
Capybara by Flavian Missi
Capybara
Flavian Missi
•
1.9K views
Recently uploaded
The Path to DevOps by
The Path to DevOps
John Valentino
6 views
•
6 slides
Introduction to Gradle by
Introduction to Gradle
John Valentino
7 views
•
7 slides
FOSSLight Community Day 2023-11-30 by
FOSSLight Community Day 2023-11-30
Shane Coughlan
8 views
•
18 slides
EV Charging App Case by
EV Charging App Case
iCoderz Solutions
10 views
•
1 slide
Supercharging your Python Development Environment with VS Code and Dev Contai... by
Supercharging your Python Development Environment with VS Code and Dev Contai...
Dawn Wages
5 views
•
51 slides
Winter Projects GDSC IITK by
Winter Projects GDSC IITK
SahilSingh368445
416 views
•
60 slides
Recently uploaded
(20)
The Path to DevOps by John Valentino
The Path to DevOps
John Valentino
•
6 views
Introduction to Gradle by John Valentino
Introduction to Gradle
John Valentino
•
7 views
FOSSLight Community Day 2023-11-30 by Shane Coughlan
FOSSLight Community Day 2023-11-30
Shane Coughlan
•
8 views
EV Charging App Case by iCoderz Solutions
EV Charging App Case
iCoderz Solutions
•
10 views
Supercharging your Python Development Environment with VS Code and Dev Contai... by Dawn Wages
Supercharging your Python Development Environment with VS Code and Dev Contai...
Dawn Wages
•
5 views
Winter Projects GDSC IITK by SahilSingh368445
Winter Projects GDSC IITK
SahilSingh368445
•
416 views
nintendo_64.pptx by paiga02016
nintendo_64.pptx
paiga02016
•
7 views
Introduction to Git Source Control by John Valentino
Introduction to Git Source Control
John Valentino
•
8 views
Introduction to Maven by John Valentino
Introduction to Maven
John Valentino
•
7 views
aATP - New Correlation Confirmation Feature.pptx by EsatEsenek1
aATP - New Correlation Confirmation Feature.pptx
EsatEsenek1
•
222 views
tecnologia18.docx by nosi6702
tecnologia18.docx
nosi6702
•
6 views
How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile... by Stefan Wolpers
How To Make Your Plans Suck Less — Maarten Dalmijn at the 57th Hands-on Agile...
Stefan Wolpers
•
44 views
Techstack Ltd at Slush 2023, Ukrainian delegation by ViktoriiaOpanasenko
Techstack Ltd at Slush 2023, Ukrainian delegation
ViktoriiaOpanasenko
•
7 views
JioEngage_Presentation.pptx by admin125455
JioEngage_Presentation.pptx
admin125455
•
9 views
Ports-and-Adapters Architecture for Embedded HMI by Burkhard Stubert
Ports-and-Adapters Architecture for Embedded HMI
Burkhard Stubert
•
35 views
predicting-m3-devopsconMunich-2023-v2.pptx by Tier1 app
predicting-m3-devopsconMunich-2023-v2.pptx
Tier1 app
•
14 views
Automated Testing of Microsoft Power BI Reports by RTTS
Automated Testing of Microsoft Power BI Reports
RTTS
•
11 views
Playwright Retries by artembondar5
Playwright Retries
artembondar5
•
7 views
Techstack Ltd at Slush 2023, Ukrainian delegation by ViktoriiaOpanasenko
Techstack Ltd at Slush 2023, Ukrainian delegation
ViktoriiaOpanasenko
•
7 views
Mobile App Development Company by Richestsoft
Mobile App Development Company
Richestsoft
•
5 views
Tdd with-python-and-django
1.
Test Driven Development with
Python and Django
2.
Who the F**lavia?
3.
Agenda 1. Good code
and bad code 2. What is TDD? 3. Why TDD? 4. How to TDD? 5. Continuous Integration
4.
good code and
bad code
6.
undead code
7.
what is TDD?
9.
why TDD?
11.
testing for design
14.
how to TDD?
16.
“You are not
allowed to write any production code unless it is to make a failing test pass.”
17.
“You are not
allowed to write any more of a test than is sufficient to fail; and compilation failures are failures.”
18.
“You are not
allowed to write any more production code than is sufficient to pass the one failing test.”
19.
testing smells
20.
def test_should_request_and_be_success(self): response =
self.client.get(“/posts”) self.assertEqual(200, response.status_code)
21.
def test_should_have_posts_on_ctx(self): response =
self.client.get(“/posts”) self.assertIn(“posts”, response.context_data)
22.
def test_should_list_posts_in_chronological_order(self): r =
self.client.get(“/posts”) expected_posts = [p1, p2, p3, p4] # keep the order self.assertQuerySetEqual(r.context_data[“posts”], expected_posts)
23.
Tools ● unittest ● django.test.TestCase ●
nose ● py.test ● ...
24.
CI - Continuous
Integration ● drone.io ● travisci ● circleci ● jenkins ● hudson ● ...
25.
Tack så mycket! Flavia
Missi @flaviamissi https://github.com/flaviamissi
26.
Tack så mycket! ●
http://butunclebob.com/ArticleS.UncleBob. TheThreeRulesOfTdd ● http://butunclebob.com/ArticleS.UncleBob. TheBowlingGameKata ● http://extremeprogramming.org/