← Về thư mục
tests/protocolsio-integration/test_scripts.py
- FakeResponse · class · L43-L70 — class FakeResponse
- init · method · L44-L58 — def init( self, body: bytes, *, url: str, status: int = 200, headers: dict[str, str] | None = None, ) -> None
- enter · method · L60-L61 — def enter(self) -> "FakeResponse"
- exit · method · L63-L64 — def exit(self, *args: object) -> None
- read · method · L66-L67 — def read(self, size: int = -1) -> bytes
- getcode · method · L69-L70 — def getcode(self) -> int
- SequenceOpener · class · L73-L84 — class SequenceOpener
- init · method · L74-L76 — def init(self, responses: list[object]) -> None
- open · method · L78-L84 — def open(self, request: object, timeout: float) -> object
- ScriptTests · class · L87-L538 — class ScriptTests(unittest.TestCase)
- setUp · method · L88-L90 — def setUp(self) -> None
- tearDown · method · L92-L93 — def tearDown(self) -> None
- test_all_help_paths_are_dependency_free · method · L95-L109 — def test_all_help_paths_are_dependency_free(self) -> None
- test_auth_validator_reports_presence_without_values · method · L111-L126 — def test_auth_validator_reports_presence_without_values(self) -> None
- test_origin_allowlist_is_https_only · method · L128-L147 — def test_origin_allowlist_is_https_only(self) -> None
- test_pagination_rejects_untrusted_next_host_and_path · method · L149-L199 — def test_pagination_rejects_untrusted_next_host_and_path(self) -> None
- test_offline_protocol_summary_preserves_version_and_attribution · method · L201-L230 — def test_offline_protocol_summary_preserves_version_and_attribution(self) -> None
- test_duplicate_json_keys_are_rejected · method · L232-L238 — def test_duplicate_json_keys_are_rejected(self) -> None
- test_write_planner_redacts_and_never_executes · method · L240-L261 — def test_write_planner_redacts_and_never_executes(self) -> None
- test_write_planner_requires_exact_confirmation · method · L263-L284 — def test_write_planner_requires_exact_confirmation(self) -> None
- test_publish_plan_requires_protocol_uri_not_doi · method · L286-L297 — def test_publish_plan_requires_protocol_uri_not_doi(self) -> None
- test_upload_plan_hashes_bounded_local_file_only · method · L299-L316 — def test_upload_plan_hashes_bounded_local_file_only(self) -> None
- test_read_plan_does_not_touch_network_or_credentials · method · L318-L325 — def test_read_plan_does_not_touch_network_or_credentials(self) -> None
- test_mocked_get_uses_named_token_without_emitting_it · method · L327-L353 — def test_mocked_get_uses_named_token_without_emitting_it(self) -> None
- test_mocked_list_follows_only_validated_bounded_page · method · L355-L423 — def test_mocked_list_follows_only_validated_bounded_page(self) -> None
- test_retry_after_is_capped_and_attempts_are_bounded · method · L425-L450 — def test_retry_after_is_capped_and_attempts_are_bounded(self) -> None
- test_response_size_cap_is_enforced · method · L452-L474 — def test_response_size_cap_is_enforced(self) -> None
- test_mocked_pdf_export_writes_private_file · method · L476-L512 — def test_mocked_pdf_export_writes_private_file(self) -> None
- test_sanitizer_redacts_remote_credential_fields · method · L514-L525 — def test_sanitizer_redacts_remote_credential_fields(self) -> None
- test_redirect_handler_refuses_redirects · method · L527-L538 — def test_redirect_handler_refuses_redirects(self) -> None