Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Python Testing 101
Rating: 3.6 out of 5(18 ratings)
275 students

Python Testing 101

UnitTesting Python with Unittest Framework||White Box Testing||Mocks & Parameterized Tests||Pytest, Jenkins & More...
Created byKumar S
Last updated 5/2026
English

What you'll learn

  • Unit testing with Python 'unittest' framework
  • Fundamentals of Unit Testing or White box testing in Python
  • Writing and executing Testcases in Python
  • Execute Unit Tests in CI/CD server Jenkins
  • Using Mock or Test Double in Python Unittesting
  • Test execution and Reporting with Pytest framework with Jenkins
  • Parameterized Testing with Parameterized Package
  • Code collaboration and run tests from Code repo like GitHub
  • Using Git for code version control

Course content

9 sections32 lectures4h 24m total length
  • Intro1:40
  • Install/Configure Pycharm in Windows5:14
  • About the Application Under Test(AUT)0:59

Requirements

  • Python 3.6+ installed in the PC
  • Basic familarity with Python fundamentals
  • Know how to install application software in Windows10

Description

Welcome to Python Testing 101 - Unit Testing Python code with Python Unittest framework.

Unit testing is a software testing methodology wherein the individual components or parts of the program, called units, are tested independently with all the required dependencies. Unit testing is mostly done by developers, who write the programs for the units. In most of the software projects, unit testing is part of a formal process of development with proper schedule and or efforts allocated for writing unit tests.

The course lets you get your hands dirty with the basic building blocks in testing, which are unit tests. Here you will be taken through what a unit test is, the basic syntax, and examples of a simple unit test.

Then, you will learn about the methods available to use in unit testing and the various tools available to help in running and debugging your tests. You also will learn about use of mocks and patching, which helps you to isolate the code you are interested in testing (your “units”), and simulate responses from other parts of the system or libraries.

This course will help you master the fundamentals of Unit testing of Python project. It teaches you various techniques for writing  unit tests in Python and how to execute them efficiently, and find the bugs before your users do!

We will be using Python Unittest framework which comes with Python standard library and it assumes that you have minimal prior experience with Python coding.

You'll learn how to assert parts of your tests, how to discover the tests, and make tests easier to read and manage. Throughout the course you will see lots of unit test code examples in Python.

Some of the interesting topics covered in the course are:

  • Create Project in Pycharm with Virtual Env

  • Unittest Fixtures & Test Discovery

  • Using Mock and Test Doubles

  • Pytest as Test Runner and generating nice reports

  • Jenkins to run and share the test reports

  • Parameterized Tests

  • Writing unittest for a Real, Working Application

Thank you and see you in this course.

Who this course is for:

  • Developers who want to start writing unit tests for their Python project
  • QA engineers who want to learn Unit testing or White Box Testing
  • Anyone who wants to learn testing and automation
  • Anyone who wants to use Jenkins to execute Python tests
  • Anyone who wants to learn about CI/CD with Python projects
  • Anyone who wants to learn Pytest for running Python Tests