bidsschematools.tests.test_schema

Tests for the bidsschematools package.

Functions

bidsschematools.tests.test_schema.test__get_bids_version(tmp_path)

Test that adding a legal field does not raise an error.

bidsschematools.tests.test_schema.test_dereferencing()
bidsschematools.tests.test_schema.test_formats(schema_obj)

Test valid string patterns allowed by the specification.

bidsschematools.tests.test_schema.test_invalid_value()

Test that an invalid value raises an error.

bidsschematools.tests.test_schema.test_load_schema(schema_dir)

Smoke test for bidsschematools.schema.load_schema.

bidsschematools.tests.test_schema.test_namespace_to_dict()
bidsschematools.tests.test_schema.test_object_definitions(schema_obj)

Ensure that object definitions in the schema contain required fields.

bidsschematools.tests.test_schema.test_valid_schema()

Test that a valid schema does not raise an error.