From 0e7e28bf1462e2691a8b267ef12b075101b67ab8 Mon Sep 17 00:00:00 2001 From: Scott Pakin Date: Tue, 9 Jan 2024 22:06:00 -0700 Subject: [PATCH] Hard-wire the year into the metadata test The problem with the previous use of now.year is that this causes the tests to break on an annual basis. --- ...667da0ad.out => sis__e30840d5fbad4e04904f7192058a039c.out} | 2 +- tests/test_simple_inkscape_scripting.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename tests/data/refs/{sis__a5edb157d83690e326cc296b667da0ad.out => sis__e30840d5fbad4e04904f7192058a039c.out} (92%) diff --git a/tests/data/refs/sis__a5edb157d83690e326cc296b667da0ad.out b/tests/data/refs/sis__e30840d5fbad4e04904f7192058a039c.out similarity index 92% rename from tests/data/refs/sis__a5edb157d83690e326cc296b667da0ad.out rename to tests/data/refs/sis__e30840d5fbad4e04904f7192058a039c.out index 587a747..4cc8656 100644 --- a/tests/data/refs/sis__a5edb157d83690e326cc296b667da0ad.out +++ b/tests/data/refs/sis__e30840d5fbad4e04904f7192058a039c.out @@ -6,7 +6,7 @@ image/svg+xml - This, Too, is Not a Pipe2023-03-31T22:14:00John DoeCopyright (C) 2023 John DoeAwesome Artwork, Inc.10.5555/12345678https://collections.lacma.org/node/239578isVersionOf "La Trahison des Images"fr.BEtobacco pipepaintingcursive writingLessines, BelgiumPainting of a tobacco pipe on a solid background with the French phrase, "Ce n'est pas non plus un tuyau" handwritten beneath itFred Nerk + This, Too, is Not a Pipe2024-01-09T22:02:00John DoeCopyright (C) 2024 John DoeAwesome Artwork, Inc.10.5555/12345678https://collections.lacma.org/node/239578isVersionOf "La Trahison des Images"fr.BEtobacco pipepaintingcursive writingLessines, BelgiumPainting of a tobacco pipe on a solid background with the French phrase, "Ce n'est pas non plus un tuyau" handwritten beneath itFred Nerk diff --git a/tests/test_simple_inkscape_scripting.py b/tests/test_simple_inkscape_scripting.py index 37dfd4f..dee14d8 100644 --- a/tests/test_simple_inkscape_scripting.py +++ b/tests/test_simple_inkscape_scripting.py @@ -476,9 +476,9 @@ class SimpInkScrTestMetadata(CustomComparisonMixin, now = datetime.datetime.now() metadata.title = 'This, Too, is Not a Pipe' -metadata.date = datetime.datetime(2023, 3, 31, 22, 14) +metadata.date = datetime.datetime(2024, 1, 9, 22, 2) metadata.creator = 'John Doe' -metadata.rights = 'Copyright (C) %d John Doe' % now.year +metadata.rights = 'Copyright (C) 2024 John Doe' metadata.publisher = 'Awesome Artwork, Inc.' metadata.identifier = '10.5555/12345678' metadata.source = 'https://collections.lacma.org/node/239578'