Skip to content

Commit 70c512e

Browse files
committed
test: Fix expected datetime patterns
1 parent 0e0ae07 commit 70c512e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/schemacode/src/bidsschematools/tests/test_schema.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ def test_formats(schema_obj):
8585
"2022-01-05T13:16:30",
8686
"2022-01-05T13:16:30.5", # subsecond resolution is allowed
8787
"2022-01-05T13:16:30.000005", # up to 6 decimal points
88-
"2022-01-05T13:16:30UTC", # timezones are allowed
89-
"2022-01-05T13:16:30.05UTC",
88+
"2022-01-05T13:16:30Z", # UTC indicator is allowed
89+
"2022-01-05T13:16:30.05Z",
90+
"2022-01-05T13:16:30+01:00", # integral offsets are allowed
91+
"2022-01-05T13:16:30-05:00",
9092
],
9193
"time": [
9294
"13:16:30",

0 commit comments

Comments
 (0)