"Jumpstart Python Testing in 5 Minutes Flat"
summary
A 5-minute demo uses Python 3.8.4 and pytest 6.2.2 to create a simple accumulator class, write tests in a test/ test_accum.py module, and show concrete code: a pytest accumulator fixture that returns a fresh object, assertions that initial count is zero, tests for add() and add(n), and an assertion that direct setting fails. Commands shown include pip install pytest and running tests with python -m pytest to view failures.
AI-written summary · about
chapters (5)
- 0:00Start
- 0:14Why Do People Love Python So Much
- 0:46Pick a Test Framework
- 2:50Unit Tests for the Accumulator
- 3:09Import Statements
related talks
05mStart Testing in 5 Minutes Flat
33mUnit Testing with Pytest
03h 02mdef test_crash_course_with_pytest()
30mHow to build a unit testing library from scratch?
27mPyTest
38mTesting for the Terrified: How to Write Tests, Conquer Guilt, and Level Up
01h 28mTesting with Pytest for Data Science
30mVisual Testing with PyCharm and pytest
