diff options
author | James R. Barlow <jim@purplerock.ca> | 2019-02-12 20:42:11 -0800 |
---|---|---|
committer | James R. Barlow <jim@purplerock.ca> | 2019-02-12 20:42:11 -0800 |
commit | 4d22fe47912c518e8b3348aedccdac3f11ed81d7 (patch) | |
tree | 205c1279514313a83018de1780d09be4ffa06efe /tests | |
parent | 4307c4489eb18abd82b080080c9d616c98575601 (diff) |
Fix issue #25 - year missing leading zero on some platforms
Closes #25
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_metadata.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 5fd8111..4d9f2bf 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -4,7 +4,7 @@ from pathlib import Path import defusedxml.ElementTree as ET import pytest -from hypothesis import given +from hypothesis import given, example from hypothesis.strategies import integers import pikepdf @@ -267,6 +267,7 @@ def test_date_docinfo_from_xmp(): integers(0, 99), integers(0, 99), ) +@example(1, 1, 1, 0, 0, 0) def test_random_dates(year, month, day, hour, mins, sec): date_args = year, month, day, hour, mins, sec xmp = '{:04d}-{:02d}-{:02d}T{:02d}:{:02d}:{:02d}'.format(*date_args) |