Skip to content
UdemySoftware DevelopmentPaid courseIntermediate levelCertificate

Hands-On Test Driven Development with Python (Udemy.com)

Apply the practices of Test-Driven Development using the PyTest framework to easily create your unit tests

Created by: Packt Publishing

Last updated June 2018

icon
What you will learn

  • Know how to write better Python code faster using the disciplines of Unit Testing and TDD
  • Use code coverage tools to ensure your unit tests are thoroughly testing all of your production code
  • See the application of Unit Testing and TDD using the PyTest unit testing framework to create your unit tests
  • Set up several popular Python IDEs to run PyTest unit tests and visually show the results in the IDE
  • Get to know the best practices for Unit Testing and TDD and how to apply them
  • Apply an Isolated Test Environment using the unittest mock library to test your production code in isolation
  • Create Python virtual environments to create isolated Python development environments for each of your projects

How it compares

Against the other 518 rated Udemy courses in Software Development on CourseDuck:

  • Rating4.0 out of 5higher than 2% of them
  • Reviews139#393 of 519 by number of reviews
  • Length2.3 hoursshorter than 87% of them
  • Last updatedJune 2018earlier than 95% of them

icon
Course Description

Do you want to be one of the core developers at your company—the person that everyone wants on their team, and who can deliver new features that work on time? Unit Testing and Test-Driven Development (TDD) are key disciplines that can help you achieve that goal.

In this video tutorial, you’ll learn about the PyTest testing library and how it’s used to write unit tests in Python. You’ll also set up some common Python development environments to use PyTest. You’ll create isolated test environments with Test Doubles and learn how to implement and use them with unittest.mock. Moving on, you’ll get to know some of the best practices in Unit Testing and TDD and get some hands-on experience with programming by implementing unit tests using TDD in Python. 

By the end of this course, you’ll be able to apply the practices of Unit Testing and TDD on a daily basis to radically increase the quality of your code and help you and your company achieve your goals faster than ever before.

About The Author

Richard Wells is a software engineer with over twenty years of experience. He has contributed immensely towards writing codes in Assembly, C, C++, Java, C#, Javascript, and Python. He is also well-informed with the entire software development lifecycle. He has written system requirements, software requirements, use cases, and user stories. He has worked on several difficult projects with tight deadlines and high expectations for quality and because of that, he is an avid practitioner of Agile, Scrum, and Extreme Programming disciplines. He is very much passionate about the process of writing quality software fast.

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

Packt Publishing

Packt are an established, trusted, and innovative global technical learning publisher, founded in Birmingham, UK with over eighteen years experience delivering rich premium content from ground-breaking authors and lecturers on a wide range of emerging and established technologies for professional development.


Packt’s purpose is to help technology professionals advance their knowledge and support the growth of new technologies by publishing vital user focused knowledge-based content faster than any other tech publisher, with a growing library of over 9,000 titles, in book, e-book, audio and video learning formats, our multimedia content is valued as a vital learning tool and offers exceptional support for the development of technology knowledge.


We publish on topics that are at the very cutting edge of technology, helping IT professionals learn about the newest tools and frameworks in a way that suits them.

icon
More courses by Packt Publishing

$64.99

$11.99

$11.99

$59.99

$59.99

$59.99

icon
More Software Development courses

$10.99

$109.99

$19.99

$19.99

$94.99

$94.99

icon
Reviews

4.0

139 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

By Kassandra Keeton on 3/12/2025

Lots of information and great examples! Would have been nice to see how to run with certain configurations not through IDE setup, but can check that out in the different tools' documentation. Overall, great course! Would be curious to see the more advanced examples. Would buy another course from this provider.

By John Patrick Maus on 4/21/2022

Instructor is well spoken and gets to the point in a relatively quick manner. The material is broken down just enough to be understood in small amounts of time without overwhelming the student with too many segments to go through. The presentations are crisp and clean, and flows with what the instructor is teaching very well.

By Henry Pierce on 2/27/2021

While it provides a good introduction to TDD concepts using pytest, it lacks depth. These are improvements I think the course need: 1. A deeper drive into pytest illustrating TDD. 2. Add code resources for the code demonstrated in the videos. I wasted a bit of time have to go back to the code examples in the video to follow along. 3. And provide resources for additional including Link the relevant PyTest doc to each block and online articles and such. 4. Adding tests at the end of each block.

By Eric Von on 2/14/2021

Not great. A survey of pytest's possibilities, not a particularly hands-on course. Narrator mumbles his way through, and simply forgets to pronounce last 1-2 words of many sentences, offering a sentence-ending grunt in their place.

By Bogdan Bozic on 1/7/2021

An excellent course! I like the normal tone the lecturer is using, no hyper-enthusiasm, no artificial happiness. There were a couple of parts that actually didn't work for me, I guess due to the Python version and development since the course has been released, but other than that, I really learned much and really enjoyed the road! A full 5 because the normal tone compensates for the things I had to look for myself that didn't work initially as shown in the course.

By Gil Groman on 1/3/2020

In the first stages there is only one example of using TDD in designing new code - which to me is a completely way of thinking I need to learn.. Although there is one at end of the course, I expected to get more time on this at the beginning . Simple work flow illustration with TDD steps (first fail, then pass, refactor, etc.) could have been good too. Next in course is the pytest properties and way of usage - I used PyCharm and the menus and configuration was different than on this tutorial. Had to look for answers and configuration examples on YouTube and other sites, also the instructor moved too fast when setting his environment also assuming all viewers use Linux.. There are good tool tips and instructions on how to do good TDD at the final stages of the course.

By Steven P Frank on 11/6/2019

The course was well presented, and a lot of information was covered. The down side was that too much information was covered in too little time. It is a good overview into TDD, but the course should have gone into greater depth for such an important subject, in my opinion.

By Michael Sinclair on 4/26/2019

Most of the examples were excellent, but the regular lectures could have been better. The instructor simply reads off the slides in a somewhat robotic voice. Also, in the first example outlining the use of mock objects, the instructor skipped over what the different objects were for and how they worked together. I had to ask my boss at work to explain everything to me. Overall, pretty satisfied with the course.

By Luis Orozco Cabrera on 12/1/2018

Great course if you want to understand TDD and improve your skills while writing code. I learned a lot of things I didn't know, it is just a great course, really. I recommend it to beginners and to medium-level python developers. Thank you.

By Martyn Davies on 11/7/2018

I enjoyed it very much, and coded along in Pycharm to build my experience. There are some worthwhile scenarios, e.g. testing REST calls and file access, but I'd like to see more examples, perhaps a realistic sized app.

Showing all 10 reviews on CourseDuck

Read all 139 reviews on Udemy

icon
Quality Score

No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 80 / 100