80 lines
5.6 KiB
Plaintext
80 lines
5.6 KiB
Plaintext
# 测试执行记录 — pbl_domain_ext(M8) 2026-09-18T07:48:06Z
|
||
|
||
命令: python3 -m unittest discover -s tests -p test_*.py -v
|
||
Python: Python 3.10.12
|
||
|
||
```
|
||
test_bind_base_missing_raises_not_found (test_domain_ref.TestBindRef) ... ok
|
||
test_bind_duplicate_raises (test_domain_ref.TestBindRef) ... ok
|
||
test_bind_ext_invalid_json_string (test_domain_ref.TestBindRef) ... ok
|
||
test_bind_invalid_ref_id (test_domain_ref.TestBindRef) ... ok
|
||
test_bind_invalid_ref_type (test_domain_ref.TestBindRef) ... ok
|
||
test_bind_missing_tenant (test_domain_ref.TestBindRef) ... ok
|
||
test_bind_same_ref_other_tenant_ok (test_domain_ref.TestBindRef)
|
||
同一基表记录可被不同租户各自绑定(UNIQUE 含 tenant_id)。 ... ok
|
||
test_bind_world_ok (test_domain_ref.TestBindRef) ... ok
|
||
test_rebind_after_unbind_revives (test_domain_ref.TestBindRef) ... ok
|
||
test_access_denied_after_unbind (test_domain_ref.TestCheckRefAccess) ... ok
|
||
test_access_denied_cross_tenant (test_domain_ref.TestCheckRefAccess) ... ok
|
||
test_access_denied_dangling_base (test_domain_ref.TestCheckRefAccess) ... ok
|
||
test_access_denied_invalid_input_no_raise (test_domain_ref.TestCheckRefAccess) ... ok
|
||
test_access_denied_unbound (test_domain_ref.TestCheckRefAccess) ... ok
|
||
test_access_denied_wrong_class_or_team (test_domain_ref.TestCheckRefAccess) ... ok
|
||
test_access_granted (test_domain_ref.TestCheckRefAccess) ... ok
|
||
test_list_all_tenant_scoped (test_domain_ref.TestListRefs) ... ok
|
||
test_list_dangling_flag (test_domain_ref.TestListRefs) ... ok
|
||
test_list_filter_by_type_and_class (test_domain_ref.TestListRefs) ... ok
|
||
test_list_invalid_ref_type_filter (test_domain_ref.TestListRefs) ... ok
|
||
test_list_page_size_capped (test_domain_ref.TestListRefs) ... ok
|
||
test_list_pagination (test_domain_ref.TestListRefs) ... ok
|
||
test_bind_team_to_world_base_missing (test_domain_ref.TestTeamClassDimension) ... ok
|
||
test_bind_team_to_world_creates_ref (test_domain_ref.TestTeamClassDimension) ... ok
|
||
test_bind_team_to_world_duplicate_same_team (test_domain_ref.TestTeamClassDimension) ... ok
|
||
test_bind_team_to_world_requires_team_id (test_domain_ref.TestTeamClassDimension) ... ok
|
||
test_bind_team_to_world_updates_existing (test_domain_ref.TestTeamClassDimension) ... ok
|
||
test_get_team_worlds (test_domain_ref.TestTeamClassDimension) ... ok
|
||
test_get_team_worlds_requires_team_id (test_domain_ref.TestTeamClassDimension) ... ok
|
||
test_list_teams_by_class_groups (test_domain_ref.TestTeamClassDimension) ... ok
|
||
test_list_teams_by_class_members_from_governance (test_domain_ref.TestTeamClassDimension) ... ok
|
||
test_list_teams_by_class_requires_class_id (test_domain_ref.TestTeamClassDimension) ... ok
|
||
test_list_teams_by_class_tenant_scoped (test_domain_ref.TestTeamClassDimension) ... ok
|
||
test_list_teams_without_governance_table_degrades (test_domain_ref.TestTeamClassDimension)
|
||
治理模块未部署(无 pbl_team_member 表)时降级为空成员列表,不报错。 ... ok
|
||
test_get_world_context_base_missing_not_found (test_domain_ref.TestTenantIsolationQueries) ... ok
|
||
test_get_world_context_cross_tenant_forbidden (test_domain_ref.TestTenantIsolationQueries) ... ok
|
||
test_get_world_with_pbl_context_ok (test_domain_ref.TestTenantIsolationQueries) ... ok
|
||
test_list_entities_by_scene_ok (test_domain_ref.TestTenantIsolationQueries) ... ok
|
||
test_list_entities_cross_tenant_forbidden (test_domain_ref.TestTenantIsolationQueries) ... ok
|
||
test_list_scenes_by_world_ok (test_domain_ref.TestTenantIsolationQueries) ... ok
|
||
test_list_scenes_cross_tenant_forbidden (test_domain_ref.TestTenantIsolationQueries) ... ok
|
||
test_list_scenes_only_bound_visible (test_domain_ref.TestTenantIsolationQueries) ... ok
|
||
test_list_worlds_by_class_filter (test_domain_ref.TestTenantIsolationQueries) ... ok
|
||
test_list_worlds_by_tenant_empty_when_no_binding (test_domain_ref.TestTenantIsolationQueries) ... ok
|
||
test_list_worlds_by_tenant_only_bound (test_domain_ref.TestTenantIsolationQueries) ... ok
|
||
test_list_worlds_filters_dangling (test_domain_ref.TestTenantIsolationQueries) ... ok
|
||
test_base_layer_readonly_projection (test_domain_ref.TestThinExtensionInvariants) ... ok
|
||
test_base_tables_untouched (test_domain_ref.TestThinExtensionInvariants) ... ok
|
||
test_contract_13_interfaces_all_callable (test_domain_ref.TestThinExtensionInvariants) ... ok
|
||
test_contract_map_covers_dspy_files (test_domain_ref.TestThinExtensionInvariants) ... ok
|
||
test_load_module_registers_env_functions (test_domain_ref.TestThinExtensionInvariants) ... ok
|
||
test_load_path_registers_all_dspy (test_domain_ref.TestThinExtensionInvariants) ... ok
|
||
test_model_json_four_sections (test_domain_ref.TestThinExtensionInvariants) ... /d/pipeline/workspaces/0/sdlc_general/modules/pbl_domain_ext/tests/test_domain_ref.py:454: ResourceWarning: unclosed file <_io.TextIOWrapper name='/d/pipeline/workspaces/0/sdlc_general/modules/pbl_domain_ext/models/pbl_domain_ref.json' mode='r' encoding='utf-8'>
|
||
model = json.load(open(path, encoding='utf-8'))
|
||
ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
||
ok
|
||
test_own_tables_single_and_matches_models (test_domain_ref.TestThinExtensionInvariants) ... ok
|
||
test_package_exports_match_init (test_domain_ref.TestThinExtensionInvariants) ... ok
|
||
test_get_ref_cross_tenant_not_found (test_domain_ref.TestUnbindGetUpdate) ... ok
|
||
test_get_ref_ok (test_domain_ref.TestUnbindGetUpdate) ... ok
|
||
test_unbind_missing (test_domain_ref.TestUnbindGetUpdate) ... ok
|
||
test_unbind_soft_delete (test_domain_ref.TestUnbindGetUpdate) ... ok
|
||
test_update_ref_missing (test_domain_ref.TestUnbindGetUpdate) ... ok
|
||
test_update_ref_ok (test_domain_ref.TestUnbindGetUpdate) ... ok
|
||
test_update_ref_rejects_key_fields (test_domain_ref.TestUnbindGetUpdate) ... ok
|
||
|
||
----------------------------------------------------------------------
|
||
Ran 62 tests in 0.064s
|
||
|
||
OK
|
||
```
|