← Về thư mục
tests/ncats-arax/test_scripts.py
- _load_client · function · L29-L35 — def _load_client()
- fixture_bytes · function · L42-L43 — def fixture_bytes(name: str) -> bytes
- fixture_json · function · L46-L47 — def fixture_json(name: str)
- one_hop_body · function · L50-L66 — def one_hop_body(**overrides)
- two_hop_body · function · L69-L89 — def two_hop_body(**overrides)
- service_info · function · L92-L99 — def service_info(warnings=())
- one_hop_args · function · L102-L121 — def one_hop_args(output_dir: Path, **overrides)
- normalize_args · function · L124-L136 — def normalize_args(output_dir: Path, **overrides)
- FakeResponse · class · L139-L158 — class FakeResponse
- init · method · L140-L143 — def init(self, body: bytes, *, status: int = 200, headers=None)
- read · method · L145-L146 — def read(self, amount=-1)
- getcode · method · L148-L149 — def getcode(self)
- close · method · L151-L152 — def close(self)
- enter · method · L154-L155 — def enter(self)
- exit · method · L157-L158 — def exit(self, exc_type, exc, traceback)
- ValidationTests · class · L161-L291 — class ValidationTests(unittest.TestCase)
- test_curie_validation · method · L162-L166 — def test_curie_validation(self)
- test_biolink_and_provider_validation · method · L168-L176 — def test_biolink_and_provider_validation(self)
- test_qualifier_limits_and_duplicate_types · method · L178-L196 — def test_qualifier_limits_and_duplicate_types(self)
- test_mode_provider_and_result_caps · method · L198-L215 — def test_mode_provider_and_result_caps(self)
- test_one_hop_requires_a_pinned_endpoint · method · L217-L219 — def test_one_hop_requires_a_pinned_endpoint(self)
- test_base_url_policy · method · L221-L240 — def test_base_url_policy(self)
- test_repeated_endpoint_flag_is_rejected · method · L242-L263 — def test_repeated_endpoint_flag_is_rejected(self)
- test_parser_exposes_no_arbitrary_or_batch_query_surface · method · L265-L291 — def test_parser_exposes_no_arbitrary_or_batch_query_surface(self)
- RequestBuilderTests · class · L294-L438 — class RequestBuilderTests(unittest.TestCase)
- test_one_hop_exact_shape_and_and_qualifiers · method · L295-L306 — def test_one_hop_exact_shape_and_and_qualifiers(self)
- test_empty_qualifiers_are_omitted · method · L308-L310 — def test_empty_qualifiers_are_omitted(self)
- test_two_hop_right_and_left_first · method · L312-L339 — def test_two_hop_right_and_left_first(self)
- test_federation_uses_one_list_valued_kp · method · L341-L349 — def test_federation_uses_one_list_valued_kp(self)
- test_fixed_actions_exclude_banned_workflows · method · L351-L356 — def test_fixed_actions_exclude_banned_workflows(self)
- test_deterministic_non_ascii_serialization · method · L358-L364 — def test_deterministic_non_ascii_serialization(self)
- test_strict_json_rejects_nonfinite_numbers · method · L366-L371 — def test_strict_json_rejects_nonfinite_numbers(self)
- test_saved_request_validator_rejects_escape_hatches · method · L373-L438 — def test_saved_request_validator_rejects_escape_hatches(self)
- OpenApiAndTransportTests · class · L441-L641 — class OpenApiAndTransportTests(unittest.TestCase)
- test_minimal_openapi_parses · method · L442-L451 — def test_minimal_openapi_parses(self)
- test_openapi_title_path_and_version_failures · method · L453-L472 — def test_openapi_title_path_and_version_failures(self)
- test_known_version_skew_warns_and_unknown_override_warns · method · L474-L492 — def test_known_version_skew_warns_and_unknown_override_warns(self)
- test_get_retries_one_retryable_status · method · L494-L507 — def test_get_retries_one_retryable_status(self)
- test_get_headers_timeout_and_http_date_retry_after · method · L509-L534 — def test_get_headers_timeout_and_http_date_retry_after(self)
- opened · function · L512-L515 — def opened(request, timeout)
- test_redirects_are_https_and_same_origin_only · method · L536-L562 — def test_redirects_are_https_and_same_origin_only(self)
- test_get_retries_timeout_but_not_other_transport · method · L564-L578 — def test_get_retries_timeout_but_not_other_transport(self)
- test_post_never_retries_and_uses_identity_encoding · method · L580-L593 — def test_post_never_retries_and_uses_identity_encoding(self)
- fail · function · L583-L585 — def fail(request, timeout)
- test_response_byte_limit · method · L595-L598 — def test_response_byte_limit(self)
- test_oversized_success_and_http_error_preserve_exit_and_attempts · method · L600-L621 — def test_oversized_success_and_http_error_preserve_exit_and_attempts(self)
- test_retry_after_is_capped_and_invalid_defaults · method · L623-L625 — def test_retry_after_is_capped_and_invalid_defaults(self)
- test_query_response_version_policy · method · L627-L641 — def test_query_response_version_policy(self)
- NormalizationTests · class · L644-L705 — class NormalizationTests(unittest.TestCase)
- test_nested_normalization_match_and_mismatch · method · L645-L680 — def test_nested_normalization_match_and_mismatch(self)
- test_curie_input_does_not_require_normalization_confirmation · method · L682-L693 — def test_curie_input_does_not_require_normalization_confirmation(self)
- test_no_usable_normalization · method · L695-L705 — def test_no_usable_normalization(self)
- ResponseParserTests · class · L708-L912 — class ResponseParserTests(unittest.TestCase)
- parse_fixture · method · L709-L714 — def parse_fixture(self, name, *, contract=None)
- test_one_hop_bindings_multiple_analyses_and_provenance · method · L716-L764 — def test_one_hop_bindings_multiple_analyses_and_provenance(self)
- test_publications_are_deduplicated_within_each_edge · method · L766-L779 — def test_publications_are_deduplicated_within_each_edge(self)
- test_two_hop_preserves_refined_predicate_and_support_graph · method · L781-L789 — def test_two_hop_preserves_refined_predicate_and_support_graph(self)
- test_reversed_edge_is_flagged_and_not_rewritten · method · L791-L796 — def test_reversed_edge_is_flagged_and_not_rewritten(self)
- test_missing_publications_and_auxiliary_graph · method · L798-L820 — def test_missing_publications_and_auxiliary_graph(self)
- test_zero_results_are_valid · method · L822-L827 — def test_zero_results_are_valid(self)
- test_partial_federation_is_retained · method · L829-L841 — def test_partial_federation_is_retained(self)
- test_truncation_states · method · L843-L855 — def test_truncation_states(self)
- test_explicit_pruning_confirms_truncation · method · L857-L866 — def test_explicit_pruning_confirms_truncation(self)
- test_informational_timeout_and_prune_configuration_do_not_mark_partial · method · L868-L886 — def test_informational_timeout_and_prune_configuration_do_not_mark_partial(self)
- test_malformed_message_graph_and_binding_fail · method · L888-L912 — def test_malformed_message_graph_and_binding_fail(self)
- RenderingTests · class · L915-L968 — class RenderingTests(unittest.TestCase)
- test_text_is_cautious_bounded_and_points_to_raw_artifacts · method · L916-L938 — def test_text_is_cautious_bounded_and_points_to_raw_artifacts(self)
- test_display_text_removes_controls_and_caps_length · method · L940-L943 — def test_display_text_removes_controls_and_caps_length(self)
- test_all_remote_scalar_fields_are_terminal_safe · method · L945-L968 — def test_all_remote_scalar_fields_are_terminal_safe(self)
- ArtifactAndCommandTests · class · L971-L1424 — class ArtifactAndCommandTests(unittest.TestCase)
- test_output_directory_policy_and_atomic_no_overwrite · method · L972-L1002 — def test_output_directory_policy_and_atomic_no_overwrite(self)
- test_failure_retention_is_best_effort_and_does_not_mask_original · method · L1004-L1020 — def test_failure_retention_is_best_effort_and_does_not_mask_original(self)
- test_graph_command_posts_saved_bytes_and_hashes_exact_response · method · L1022-L1095 — def test_graph_command_posts_saved_bytes_and_hashes_exact_response(self)
- fake_post · function · L1027-L1031 — def fake_post(url, request_bytes, *, timeout)
- test_preflight_with_output_has_get_manifest_and_no_request_artifact · method · L1097-L1129 — def test_preflight_with_output_has_get_manifest_and_no_request_artifact(self)
- test_failure_manifests_record_the_actual_network_stage · method · L1131-L1189 — def test_failure_manifests_record_the_actual_network_stage(self)
- test_oversized_query_retains_request_and_manifest_but_no_partial_response · method · L1191-L1207 — def test_oversized_query_retains_request_and_manifest_but_no_partial_response(self)
- test_zero_result_and_normalization_no_result_statuses · method · L1209-L1235 — def test_zero_result_and_normalization_no_result_statuses(self)
- test_partial_graph_command_retains_all_artifacts_and_exits_seven · method · L1237-L1272 — def test_partial_graph_command_retains_all_artifacts_and_exits_seven(self)
- test_malformed_response_is_retained_without_summary · method · L1274-L1307 — def test_malformed_response_is_retained_without_summary(self)
- test_normalize_command_never_posts · method · L1309-L1347 — def test_normalize_command_never_posts(self)
- test_summarize_is_offline_and_preserves_inputs · method · L1349-L1368 — def test_summarize_is_offline_and_preserves_inputs(self)
- test_main_exit_code_mapping_for_local_and_response_errors · method · L1370-L1424 — def test_main_exit_code_mapping_for_local_and_response_errors(self)
- LiveSmokeTests · class · L1428-L1527 — class LiveSmokeTests(unittest.TestCase)
- live_service · method · L1429-L1434 — def live_service(self)
- live_query · method · L1436-L1450 — def live_query(self, body)
- bound_node_ids · method · L1452-L1458 — def bound_node_ids(self, summary)
- test_01_production_openapi · method · L1460-L1462 — def test_01_production_openapi(self)
- test_02_production_accepts_rtx_kg2_lookup · method · L1464-L1466 — def test_02_production_accepts_rtx_kg2_lookup(self)
- test_03_normalize_ivacaftor · method · L1468-L1480 — def test_03_normalize_ivacaftor(self)
- test_04_pinned_imatinib_abl1_one_hop · method · L1482-L1484 — def test_04_pinned_imatinib_abl1_one_hop(self)
- test_05_ivacaftor_gene_cystic_fibrosis_contains_cftr · method · L1486-L1488 — def test_05_ivacaftor_gene_cystic_fibrosis_contains_cftr(self)
- test_06_imatinib_gene_cml_contains_abl1 · method · L1490-L1501 — def test_06_imatinib_gene_cml_contains_abl1(self)
- test_07_wrong_direction_does_not_return_abl1_path · method · L1503-L1512 — def test_07_wrong_direction_does_not_return_abl1_path(self)
- test_08_selected_provider_federation_is_bounded_and_provenanced · method · L1514-L1527 — def test_08_selected_provider_federation_is_bounded_and_provenanced(self)