bidsschematools.tests.test_render_text#

Tests for the bidsschematools package.

Functions

bidsschematools.tests.test_render_text.test_append_filename_template_legend()#

Check contents of generated string.

bidsschematools.tests.test_render_text.test_define_allowed_top_directories(schema_obj)#

smoke test for allowed top directories.

bidsschematools.tests.test_render_text.test_define_common_principles(schema_obj)#

Ensure that define_common_principles returns a string.

bidsschematools.tests.test_render_text.test_make_entity_definitions(schema_obj)#

Test whether expected format strings are present. This should be stable with respect to schema format.

bidsschematools.tests.test_render_text.test_make_filename_template(schema_obj, schema_dir)#

Test whether:

  • The base hierarchy structure of mandatory subject and optional session is returned. This should be robust with respect to schema format.

  • Each directory contains at least one possible pattern. This should be robust with respect to schema format.

  • All files under the datatype rules subdirectory have corresponding entries. This may need to be updated for schema hierarchy changes.

bidsschematools.tests.test_render_text.test_make_glossary(schema_obj, schema_dir)#

Test whether files under the schema objects subdirectory correspond to entries, and that rules are not mis-loaded as objects. This may need to be updated for schema hierarchy changes.

bidsschematools.tests.test_render_text.test_render_text(schema_obj)#
bidsschematools.tests.test_render_text.test_render_text_errors(schema_obj)#