Concept
A fixture builds something tests need, such as a temporary file or a prepared object, and hands it to each test that asks for it by name. Built-in ones like tmp_path cover the common cases.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Test fixtures doing its job.
import pytest
from store import Store
@pytest.fixture
def store(tmp_path):
return Store(tmp_path / "data.json")
def test_saves_and_loads(store):
store.put("a", 1)
assert store.get("a") == 1
def test_starts_empty(store):
assert store.get("a") is NoneSharing one mutable object across tests through a module-level variable. Tests then depend on the order they run in, and a failure in one shows up in another.
Your roadmap puts these before Test fixtures, unless you already know them.
Once a session shows you understand Test fixtures, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.