← Về thư mục
tests/test_artifact_scope_closure.py
- _config · function · L45-L49 — def _config(tmp_path: Path) -> Config
- _service · function · L52-L65 — def _service(cfg, store, frame_id, workspace: Path)
- _resolve · function · L57-L61 — def _resolve(path, must_exist=False)
- _seed_version · function · L68-L86 — def _seed_version(cfg, store, root_frame_id, project_id, filename, payload)
- two_projects · function · L90-L105 — def two_projects(tmp_path)
- test_agent_sql_cannot_read_the_artifacts_table · function · L111-L120 — def test_agent_sql_cannot_read_the_artifacts_table(two_projects)
- test_agent_sql_cannot_read_any_internal_artifact_table · function · L133-L136 — def test_agent_sql_cannot_read_any_internal_artifact_table(two_projects, table)
- test_a_cte_cannot_launder_a_denied_table · function · L139-L144 — def test_a_cte_cannot_launder_a_denied_table(two_projects)
- test_quoting_and_aliasing_do_not_get_past_the_gate · function · L157-L162 — def test_quoting_and_aliasing_do_not_get_past_the_gate(two_projects, sql)
- test_a_bound_parameter_cannot_hide_a_table_name · function · L165-L176 — def test_a_bound_parameter_cannot_hide_a_table_name(two_projects)
- test_the_sqlite_catalog_stays_closed · function · L188-L195 — def test_the_sqlite_catalog_stays_closed(two_projects, sql)
- test_a_legitimate_query_still_works · function · L198-L203 — def test_a_legitimate_query_still_works(two_projects)
- test_capture_observation_view_returns_only_the_callers_scope · function · L206-L224 — def test_capture_observation_view_returns_only_the_callers_scope(two_projects)
- test_completion_delivery_ledger_is_never_agent_readable · function · L227-L231 — def test_completion_delivery_ledger_is_never_agent_readable(two_projects)
- test_agent_sql_cannot_write · function · L234-L264 — def test_agent_sql_cannot_write(two_projects)
- test_the_authorizer_denies_every_catalog_table_by_rule · function · L267-L288 — def test_the_authorizer_denies_every_catalog_table_by_rule()
- test_a_scoped_view_may_read_its_base_table_but_a_cell_may_not · function · L291-L337 — def test_a_scoped_view_may_read_its_base_table_but_a_cell_may_not()
- test_a_foreign_artifact_is_reported_exactly_like_an_absent_one · function · L347-L372 — def test_a_foreign_artifact_is_reported_exactly_like_an_absent_one( two_projects, method )
- test_a_foreign_artifacts_identifiers_do_not_appear_in_the_refusal · function · L375-L382 — def test_a_foreign_artifacts_identifiers_do_not_appear_in_the_refusal(two_projects)
- test_view_image_refuses_a_foreign_version · function · L388-L394 — def test_view_image_refuses_a_foreign_version(two_projects)
- test_view_image_still_renders_our_own_version · function · L397-L400 — def test_view_image_still_renders_our_own_version(two_projects)
- test_view_image_refuses_an_absent_version_the_same_way · function · L403-L406 — def test_view_image_refuses_an_absent_version_the_same_way(two_projects)
- test_browse_artifacts_never_returns_another_projects_rows · function · L409-L418 — def test_browse_artifacts_never_returns_another_projects_rows(two_projects)
- test_browse_filename_wildcards_cannot_escape_the_project · function · L425-L438 — def test_browse_filename_wildcards_cannot_escape_the_project(two_projects, query)
- test_save_artifact_cannot_declare_a_foreign_lineage_input · function · L441-L459 — def test_save_artifact_cannot_declare_a_foreign_lineage_input(two_projects)
- test_save_artifact_cannot_declare_an_invented_lineage_input · function · L462-L470 — def test_save_artifact_cannot_declare_an_invented_lineage_input(two_projects)
- test_save_artifact_still_accepts_our_own_lineage_input · function · L473-L486 — def test_save_artifact_still_accepts_our_own_lineage_input(two_projects)
- test_the_scoped_views_are_published_once_per_scope_not_once_per_query · function · L492-L553 — def test_the_scoped_views_are_published_once_per_scope_not_once_per_query(tmp_path)
- trace · function · L517-L519 — def trace(statement)
- test_agent_sql_does_not_commit_the_callers_transaction · function · L556-L581 — def test_agent_sql_does_not_commit_the_callers_transaction(tmp_path)
- test_prov_resolve_path_refuses_a_foreign_versions_path · function · L602-L608 — def test_prov_resolve_path_refuses_a_foreign_versions_path(two_projects)
- test_prov_resolve_path_still_resolves_this_sessions_own_file · function · L611-L621 — def test_prov_resolve_path_still_resolves_this_sessions_own_file(two_projects)
- test_prov_record_refuses_a_foreign_lineage_input · function · L624-L634 — def test_prov_record_refuses_a_foreign_lineage_input(two_projects)
- test_prov_record_still_accepts_an_input_this_session_owns · function · L637-L649 — def test_prov_record_still_accepts_an_input_this_session_owns(two_projects)
- test_the_whole_chain_discloses_nothing · function · L652-L674 — def test_the_whole_chain_discloses_nothing(two_projects)