← Về thư mục
tests/test_share_router.py
- _setup · function · L22-L75 — def _setup(tmp_path: Path)
- workspace · function · L26-L29 — def workspace(root_frame_id, branch_id)
- _req · function · L78-L85 — def _req(share_id, path, method="GET", headers=None)
- _drain · function · L88-L94 — def _drain(resp)
- test_viewer_shell_has_csp_and_security_headers · function · L97-L105 — def test_viewer_shell_has_csp_and_security_headers(tmp_path)
- test_static_whitelist · function · L108-L113 — def test_static_whitelist(tmp_path)
- test_view_and_meta · function · L116-L122 — def test_view_and_meta(tmp_path)
- test_artifact_inline_and_range · function · L125-L141 — def test_artifact_inline_and_range(tmp_path)
- test_artifact_bad_id_is_404 · function · L144-L146 — def test_artifact_bad_id_is_404(tmp_path)
- test_bundle_download · function · L149-L156 — def test_bundle_download(tmp_path)
- test_head_has_no_body_but_length · function · L159-L164 — def test_head_has_no_body_but_length(tmp_path)
- test_method_not_allowed · function · L167-L169 — def test_method_not_allowed(tmp_path)
- test_unknown_and_revoked_share_are_identical_404 · function · L172-L179 — def test_unknown_and_revoked_share_are_identical_404(tmp_path)
- test_router_source_has_no_forbidden_dependencies · function · L182-L197 — def test_router_source_has_no_forbidden_dependencies(): # negative list: the read-only router must not import execution surfaces.