fix(test): fix output tests being fluky (#3859)

Fixes #3855.
pull/3863/head dev-build-kaalleen-empty-rail-issue
Martin Fischer 2025-07-10 15:39:18 +02:00 zatwierdzone przez GitHub
rodzic 25904bbd31
commit 6992923621
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -17,7 +17,9 @@ class OutputTest(TestCase):
stitch_groups = element.embroider(None)
stitch_plan = stitch_groups_to_stitch_plan(stitch_groups)
path = self.temp_file(suffix=f".{format}")
output.write_embroidery_file(path, stitch_plan, svg)
output.write_embroidery_file(path, stitch_plan, svg, settings={
"date": "", # we need the output to be deterministic for the tests
})
with open(path, "rb") as f:
return f.read()