From a74b210615f35c1ec3f9e0f8666e92c02dc84467 Mon Sep 17 00:00:00 2001 From: Tobias Kaupat Date: Mon, 19 Oct 2026 16:11:24 +0200 Subject: [PATCH] test: assert the empty-tag snapshot carries no tags Co-Authored-By: Claude Sonnet 5.5 --- tests/test_compat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_compat.py b/tests/test_compat.py index 693c3f2..ed49c0d 100644 --- a/tests/test_compat.py +++ b/tests/test_compat.py @@ -455,6 +455,8 @@ class TestResticTag: def test_empty_tag_creates_untagged_backup(self, tag_run): """an empty RESTIC_TAG creates an untagged backup""" assert "Backup Successful" in tag_run.empty.out + [snapshot] = tag_run.snapshots_after_empty + assert not snapshot.get("tags") def test_empty_tag_still_produces_snapshot(self, tag_run): """an empty RESTIC_TAG still produces a snapshot"""