From e32984cf9e68da77483be8277ed95e58eb425326 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Fri, 20 Sep 2024 09:18:03 -0400 Subject: [PATCH] Update test_rules.py --- tools/schemacode/bidsschematools/tests/test_rules.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/schemacode/bidsschematools/tests/test_rules.py b/tools/schemacode/bidsschematools/tests/test_rules.py index ca2c5b920e..126db3c69d 100644 --- a/tools/schemacode/bidsschematools/tests/test_rules.py +++ b/tools/schemacode/bidsschematools/tests/test_rules.py @@ -18,8 +18,8 @@ def test_entity_rule(schema_obj): nii_rule = rules._entity_rule(rule, schema_obj) assert nii_rule == { "regex": ( - r"sub-(?P[0-9a-zA-Z]+)/" - r"(?:ses-(?P[0-9a-zA-Z]+)/)?" + r"sub-(?P[0-9a-zA-Z+]+)/" + r"(?:ses-(?P[0-9a-zA-Z+]+)/)?" r"(?Panat)/" r"(?(subject)sub-(?P=subject)_)" r"(?(session)ses-(?P=session)_)" @@ -50,8 +50,8 @@ def test_entity_rule(schema_obj): json_rule = rules._entity_rule(rule, schema_obj) assert json_rule == { "regex": ( - r"(?:sub-(?P[0-9a-zA-Z]+)/)?" - r"(?:ses-(?P[0-9a-zA-Z]+)/)?" + r"(?:sub-(?P[0-9a-zA-Z+]+)/)?" + r"(?:ses-(?P[0-9a-zA-Z+]+)/)?" r"(?:(?Panat)/)?" r"(?(subject)sub-(?P=subject)_)" r"(?(session)ses-(?P=session)_)"