Introduction to Testing in Python
Alexander Levin
Data Scientist
pytest
pytest test_script.py
Chain fixtures requests
Fixtures autouse
import unittest
class TestSquared(unittest.TestCase):
def test_negative(self):
self.assertEqual((-3) ** 2, 9)
Unittest CLI
Fixtures in unittest
Introduction to Testing in Python