schema_salad.tests.test_examples

Test examples.

Module Contents

Functions

test_schemas()

test_bad_schemas(caplog)

Test that bad $schemas refs don't stop parsing.

test_skip_bad_schemas(caplog)

Test that (bad) $schemas refs are properly skipped.

test_self_validate()

test_print_rdf()

Test --print-rdf.

test_print_rdf_invalid_external_ref()

Test --print-rdf when document references unfetchable external schema.

test_print_pre_schema()

Test --print-pre only schema.

test_print_pre()

Test --print-pre.

test_print_schema_index()

Test --print-index only with a schema.

test_print_index()

Test --print-index.

test_print_schema_metadata()

Test --print-metadata only for a schema.

test_print_metadata()

Test --print-metadata.

test_schema_salad_doc_oneline_doc()

Test schema-salad-doc when the 1st type has only a single doc line.

test_avro_regression()

test_jsonld_ctx()

test_idmap()

test_scoped_ref()

test_examples()

test_yaml_float_test()

test_typedsl_ref()

test_nested_typedsl_ref()

test_secondaryFile_dsl_ref()

test_scoped_id()

test_rdf_datetime()

Affirm that datetime objects can be serialized in makerdf().

test_yaml_datetime()

Affirm that yaml_no_ts prevents the creation of datetime objects.

test_subscoped_id()

test_mixin()

test_fragment()

test_file_uri()

test_sourceline()

test_cmap()

test_blank_node_id()

test_can_use_Any()

Test that 'type: Any' can be used

test_nullable_links()

schema_salad.tests.test_examples.test_schemas()
Return type:

None

schema_salad.tests.test_examples.test_bad_schemas(caplog)

Test that bad $schemas refs don’t stop parsing.

Parameters:

caplog (pytest.LogCaptureFixture) –

Return type:

None

schema_salad.tests.test_examples.test_skip_bad_schemas(caplog)

Test that (bad) $schemas refs are properly skipped.

Parameters:

caplog (pytest.LogCaptureFixture) –

Return type:

None

schema_salad.tests.test_examples.test_self_validate()
Return type:

None

schema_salad.tests.test_examples.test_print_rdf()

Test –print-rdf.

Return type:

None

schema_salad.tests.test_examples.test_print_rdf_invalid_external_ref()

Test –print-rdf when document references unfetchable external schema.

Return type:

None

schema_salad.tests.test_examples.test_print_pre_schema()

Test –print-pre only schema.

Return type:

None

schema_salad.tests.test_examples.test_print_pre()

Test –print-pre.

Return type:

None

schema_salad.tests.test_examples.test_print_schema_index()

Test –print-index only with a schema.

Return type:

None

schema_salad.tests.test_examples.test_print_index()

Test –print-index.

Return type:

None

schema_salad.tests.test_examples.test_print_schema_metadata()

Test –print-metadata only for a schema.

Return type:

None

schema_salad.tests.test_examples.test_print_metadata()

Test –print-metadata.

Return type:

None

schema_salad.tests.test_examples.test_schema_salad_doc_oneline_doc()

Test schema-salad-doc when the 1st type has only a single doc line.

Return type:

None

schema_salad.tests.test_examples.test_avro_regression()
Return type:

None

schema_salad.tests.test_examples.test_jsonld_ctx()
Return type:

None

schema_salad.tests.test_examples.test_idmap()
Return type:

None

schema_salad.tests.test_examples.test_scoped_ref()
Return type:

None

schema_salad.tests.test_examples.test_examples()
Return type:

None

schema_salad.tests.test_examples.test_yaml_float_test()
Return type:

None

schema_salad.tests.test_examples.test_typedsl_ref()
Return type:

None

schema_salad.tests.test_examples.test_nested_typedsl_ref()
Return type:

None

schema_salad.tests.test_examples.test_secondaryFile_dsl_ref()
Return type:

None

schema_salad.tests.test_examples.test_scoped_id()
Return type:

None

schema_salad.tests.test_examples.test_rdf_datetime()

Affirm that datetime objects can be serialized in makerdf().

Return type:

None

schema_salad.tests.test_examples.test_yaml_datetime()

Affirm that yaml_no_ts prevents the creation of datetime objects.

Return type:

None

schema_salad.tests.test_examples.test_subscoped_id()
Return type:

None

schema_salad.tests.test_examples.test_mixin()
Return type:

None

schema_salad.tests.test_examples.test_fragment()
Return type:

None

schema_salad.tests.test_examples.test_file_uri()
Return type:

None

schema_salad.tests.test_examples.test_sourceline()
Return type:

None

schema_salad.tests.test_examples.test_cmap()
Return type:

None

schema_salad.tests.test_examples.test_blank_node_id()
Return type:

None

schema_salad.tests.test_examples.test_can_use_Any()

Test that ‘type: Any’ can be used

Return type:

None

Return type:

None