EraCode practice

Snapshot testing a dict result with pytest

PythonintermediateMulti-Part

Summary

Quick practice on Python testing: assert a stable snapshot of a function’s returned dict using pytest.

Problem preview

### Goal Write a pytest test that verifies a function returns the expected **dict snapshot**. - Call and assert it matches the expected dict for each case. - Keep the assertion stable by normalizing …

Attempt this challenge

Sign in to attempt the full challenge with timed AI grading, hints, and test feedback.