Lesson

Write Your First Python Unit Test with pytest

In this lesson you will create a new project with a virtual environment and write your first unit test with pytest. In doing so, you will learn: - install pytest - organize your project to support automated test discovery - setup Visual Code to use pytest as...

Duration
4 min
Access
Free
Transcript
Available

In this lesson you will create a new project with a virtual environment and write your first unit test with pytest. In doing so, you will learn:

  • install pytest
  • organize your project to support automated test discovery
  • setup Visual Code to use pytest as your test engine
  • best practice naming conventions for tests in Python