Textual Snapshot Tests

Showing diffs for {{ fails }} mismatched snapshot(s)
{{ diffs | length }} snapshots changed ยท {{ passes }} snapshots matched
{% for diff in diffs %}
{{ diff.test_name }} {{ diff.path }}:{{ diff.line_number }} {% if diff.snapshot != "" %}
{% endif %}
{{ diff.actual }}
Output from test (More info)
{% if diff.snapshot != "" %} {{ diff.snapshot }} {% else %}

No history for this test

If you're happy with the content on the left, save it to disk by running pytest with the --snapshot-update flag.

Unexpected?

Snapshots are named after the name of the test you call snap_compare in by default.
If you've renamed a test, the association between the snapshot and the test is lost, and you'll need to run with --snapshot-update to associate the snapshot with the new test name.

{% endif %}
{% if diff.snapshot != "" %}
Historical snapshot
{% endif %}
{# Modal with debug info: #}
{% endfor %}

If you're happy with the test output, run pytest with the --snapshot-update flag to update the snapshot.

Report generated at UTC {{ now }}.