Orchestrata Ultimate › Tests › Reference › domaingen

Tests reference — tests/domaingen

tests/domaingen — 2 test modules, 40 test functions. Source tree: tests/domaingen at commit 8a2cb42ad. Generated from the tests AST snapshot by scripts/gen-data-pages.py.

Prose pending.

Modules

Module Tests Covers
test_domaingen.py 25 1
test_reader.py 15 1

Module details

tests/domaingen/test_domaingen.py

source · 25 tests · 482 lines

SPEC-105 domain-model generation tests (TST-105-001..007).

Covers: domaingen/ (package)

Kind Name Line Description
function test_parse_entities_fields_relationships 90
function test_xsd_type_map 105
function test_subclassof_becomes_parent 111
function test_ontology_round_trip 120
function test_generate_is_deterministic_and_compiles 129
function test_generated_uses_logging_and_no_destructive_sparql 148
function test_generated_repository_insert_only_bitemporal 164
function test_add_entity_regenerates_ontology_and_code 189
function test_generated_repository_temporal_query_modes 212
function test_repository_execute_without_connection_raises 231
function test_repository_rejects_injection_iri 241
function test_repository_current_uses_as_of_now 251
function test_generate_shacl_node_and_property_shapes 263
function test_shacl_inheritance_references_parent_shape 279
function test_shacl_is_valid_turtle_and_deterministic 285
function test_generate_code_emits_constraints 294
function test_stardog_connection_url_construction 388
function test_stardog_client_reuses_injected_http 396
function test_stardog_client_is_lazily_created_and_reused 405
function test_stardog_update_success_sends_form_body_and_basic_auth 418
function test_stardog_update_without_credentials_sends_no_auth_header 434
function test_stardog_update_failure_wraps_as_stardog_connection_error 442
function test_stardog_query_success_returns_json_bindings_and_accept_header 449
function test_stardog_query_failure_wraps_as_stardog_connection_error 467
function test_entity_doc_from_label_or_comment 477

tests/domaingen/test_reader.py

source · 15 tests · 246 lines

SPEC-105 reader (domaingen/reader.py) edge-case tests.

Covers: domaingen/ (package)

Kind Name Line Description
function test_slash_delimited_iri_uses_final_path_segment_as_name 138
function test_empty_ontology_falls_back_to_default_namespace 145
function test_restriction_missing_cardinality_is_ignored 155
function test_restriction_non_numeric_cardinality_is_ignored 162
function test_restriction_marks_relationship_required 169
function test_restriction_marks_field_required 176
function test_plain_subclassof_sets_parent_and_is_not_a_restriction 183
function test_entity_doc_prefers_comment_then_label 189
function test_parse_ontology_from_path_object 198
function test_parse_ontology_from_string_path 204
function test_malformed_turtle_raises_ontology_parse_error 213
function test_datatype_property_with_no_domain_is_skipped 221
function test_datatype_property_with_unknown_xsd_type_falls_back_to_str 227
function test_object_property_with_no_domain_is_skipped 237
function test_object_property_with_no_range_is_skipped 243