HOME > Development > Hands-On Test Driven Development with Python

Hands-On Test Driven Development with Python

  • Development
  • Mar 07, 2025
SynopsisHands-On Test Driven Development with Python, available at $3...
Hands-On Test Driven Development with Python  No.1

Hands-On Test Driven Development with Python, available at $34.99, has an average rating of 4.1, with 26 lectures, based on 135 reviews, and has 731 subscribers.

You will learn about 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 This course is ideal for individuals who are This course is for software developers who write code using Python. If you love Python and are passionate about writing high-quality code, then this course is for you. It is particularly useful for This course is for software developers who write code using Python. If you love Python and are passionate about writing high-quality code, then this course is for you.

Enroll now: Hands-On Test Driven Development with Python

Summary

Title: Hands-On Test Driven Development with Python

Price: $34.99

Average Rating: 4.1

Number of Lectures: 26

Number of Published Lectures: 26

Number of Curriculum Items: 26

Number of Published Curriculum Objects: 26

Original Price: $109.99

Quality Status: approved

Status: Live

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
  • Who Should Attend

  • This course is for software developers who write code using Python. If you love Python and are passionate about writing high-quality code, then this course is for you.
  • Target Audiences

  • This course is for software developers who write code using Python. If you love Python and are passionate about writing high-quality code, then this course is for you.
  • 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.

    Course Curriculum

    Chapter 1: Overview and Setting Up Your Development Environment

    Lecture 1: The Course Overview

    Lecture 2: Overview of Unit Testing and TDD Practices and How They Help You Write Better C

    Lecture 3: Simple Unit Testing and TDD Coding Session

    Lecture 4: Creating Python Virtual Environments to Help Manage Your Python Projects

    Lecture 5: Setting Up PyTest in PyCharm

    Lecture 6: Setting Up PyTest in Eclipse

    Chapter 2: PyTest Framework Supporting Functional Testing

    Lecture 1: Introduction of PyTest Framework

    Lecture 2: Test Discovery Function

    Lecture 3: XUnit Style Setup and Teardown

    Lecture 4: Test Fixtures Environment

    Lecture 5: Assert Statements and Exceptions

    Lecture 6: PyTest Command Line Arguments

    Chapter 3: Hands-On Example – Implementing a Checkout Cart with TDD

    Lecture 1: Setting Up a Checkout Cart and the 1st Test Case

    Lecture 2: Add Items, Add Item Prices, and Calculate the Total

    Lecture 3: Add Multiple Items and Calculate Total

    Lecture 4: Add and Apply Discounts

    Lecture 5: Throw Exception When Adding an Item with No Price

    Chapter 4: Creating an Isolated Test Environment with Test Doubles

    Lecture 1: Test Doubles and the unittest.mock Framework

    Lecture 2: Unittest.mock – Mocking the File System Examples

    Lecture 3: Unittest.mock – Mocking an Abstract Interface

    Lecture 4: Unittest.mock – Mocking a Network Connection

    Lecture 5: Adding Code to Checkout Cart to Read Prices from a File

    Chapter 5: Unit Testing and TDD Best Practices

    Lecture 1: Unit Testing and TDD Best Practices

    Lecture 2: Hands On Example of Applying Best Practices

    Lecture 3: Overview of Code Coverage and PyTest.cov

    Lecture 4: PyTest.cov Hands On Example with Simple Test Cases

    Instructors

  • Hands-On Test Driven Development with Python  No.2
    Packt Publishing
    Tech Knowledge in Motion
  • Rating Distribution

  • 1 stars: 4 votes
  • 2 stars: 9 votes
  • 3 stars: 26 votes
  • 4 stars: 41 votes
  • 5 stars: 54 votes
  • Frequently Asked Questions

    How long do I have access to the course materials?

    You can view and review the lecture materials indefinitely, like an on-demand channel.

    Can I take my courses with me wherever I go?

    Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!