cultcache-py tests: the no-path refusal test makes its canary directory per store kind

The previous commit's test reused one directory name across the two store kinds and errored on the second. Not run on this workstation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-14 03:35:25 +02:00
commit 3b70479ffd

View file

@ -910,8 +910,8 @@ class ConvertTests(unittest.TestCase):
def test_convert_refusals_name_no_path(self) -> None:
for label, make in self._stores():
with self.subTest(store=label):
folder = self.directory / f"{CANARY}-dir"
folder.mkdir()
folder = self.directory / label / f"{CANARY}-dir"
folder.mkdir(parents=True)
definitions = [define_document_type("tests.mig")]
store = type(make("x"))(folder / f"{CANARY}-src")
taken = type(store)(folder / f"{CANARY}-taken")