From 91e4cf2534974df5e406c6f6c62dc2fc9b13fd34 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Tue, 10 Dec 2024 11:34:22 -0500 Subject: [PATCH] test: Fix expected datetime patterns --- tools/schemacode/src/bidsschematools/tests/test_schema.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/schemacode/src/bidsschematools/tests/test_schema.py b/tools/schemacode/src/bidsschematools/tests/test_schema.py index 6c52f0c2c1..6b1449e13e 100644 --- a/tools/schemacode/src/bidsschematools/tests/test_schema.py +++ b/tools/schemacode/src/bidsschematools/tests/test_schema.py @@ -85,8 +85,8 @@ def test_formats(schema_obj): "2022-01-05T13:16:30", "2022-01-05T13:16:30.5", # subsecond resolution is allowed "2022-01-05T13:16:30.000005", # up to 6 decimal points - "2022-01-05T13:16:30UTC", # timezones are allowed - "2022-01-05T13:16:30.05UTC", + "2022-01-05T13:16:30Z", # UTC indicator is allowed + "2022-01-05T13:16:30.05Z", ], "time": [ "13:16:30", @@ -133,7 +133,7 @@ def test_formats(schema_obj): ], "datetime": [ "2022-01-05T13:16:30.1000005", # too many decimal points - "2022-01-05T13:16:30U", # time zone too short + "2022-01-05T13:16:30U", # Only Z is permitted "2022-01-05T13:16:30UTCUTC", # time zone too long "2022-01-05T34:10:10", # invalid time ],