← Về thư mục
tests/test_host_remote_science_service.py
- FakeRegistry · class · L15-L26 — class FakeRegistry
- init · method · L16-L19 — def init(self, capabilities=None, hosts=None) -> None
- get_host · method · L21-L22 — def get_host(self, host)
- capability_host · method · L24-L26 — def capability_host(self, capability: str)
- FakeRunner · class · L29-L38 — class FakeRunner
- init · method · L30-L32 — def init(self, result=None) -> None
- call · method · L34-L38 — def call(self, argv, **kwargs)
- process · function · L41-L46 — def process(stdout: str, stderr: str = "", returncode: int = 0)
- encoded · function · L49-L51 — def encoded(value: str | dict) -> str
- pdb_text · function · L54-L63 — def pdb_text(sequence="ACDE")
- plddt_text · function · L66-L67 — def plddt_text()
- fold_output · function · L70-L112 — def fold_output( *, provenance: str | None = None, manifest: str | None = None, pdb_b64=None, plddt_b64=None, confidence_b64=None, )
- mutation_output · function · L115-L143 — def mutation_output( *, provenance: str | None = None, summary: str | None = None, csv_b64=None )
- test_provenance_buffer_parses_best_effort_and_drains_by_identity · function · L146-L191 — def test_provenance_buffer_parses_best_effort_and_drains_by_identity()
- test_fold_validation_and_no_fabrication_errors_are_exact · function · L194-L213 — def test_fold_validation_and_no_fabrication_errors_are_exact()
- test_fold_preserves_ssh_argv_markers_result_and_environment_provenance · function · L216-L283 — def test_fold_preserves_ssh_argv_markers_result_and_environment_provenance()
- test_fold_transport_failures_are_soft_errors · function · L296-L304 — def test_fold_transport_failures_are_soft_errors(failure, expected)
- test_fold_incomplete_and_parse_failures_keep_exact_diagnostics · function · L307-L322 — def test_fold_incomplete_and_parse_failures_keep_exact_diagnostics()
- test_mutation_validation_and_no_fabrication_errors_are_exact · function · L325-L345 — def test_mutation_validation_and_no_fabrication_errors_are_exact()
- test_mutation_scoring_preserves_ssh_result_and_provenance_contract · function · L348-L421 — def test_mutation_scoring_preserves_ssh_result_and_provenance_contract()
- test_mutation_transport_failures_are_soft_errors · function · L434-L444 — def test_mutation_transport_failures_are_soft_errors(failure, expected)
- test_mutation_incomplete_and_parse_failures_keep_exact_diagnostics · function · L447-L464 — def test_mutation_incomplete_and_parse_failures_keep_exact_diagnostics()
- test_invalid_sequence_rejected_before_ssh · function · L473-L482 — def test_invalid_sequence_rejected_before_ssh(method, output, sequence)
- test_nonzero_exit_rejects_complete_markers · function · L489-L501 — def test_nonzero_exit_rejects_complete_markers(method, output, sequence)
- test_invalid_gpu_never_launches_ssh · function · L508-L514 — def test_invalid_gpu_never_launches_ssh(method, value)
- test_invalid_fold_parameter_never_launches_ssh · function · L521-L526 — def test_invalid_fold_parameter_never_launches_ssh(field, value)
- test_invalid_positions_never_launch_ssh · function · L552-L557 — def test_invalid_positions_never_launch_ssh(positions)
- test_positions_supported_inputs_preserve_one_based_values · function · L561-L570 — def test_positions_supported_inputs_preserve_one_based_values(positions)
- test_only_known_gpu_count_limits_index · function · L580-L592 — def test_only_known_gpu_count_limits_index( method, sequence, output, count, gpu, success )
- test_fold_rejects_invalid_manifest_without_provenance · function · L609-L618 — def test_fold_rejects_invalid_manifest_without_provenance(manifest)
- test_fold_rejects_empty_invalid_truncated_base64_or_utf8 · function · L623-L630 — def test_fold_rejects_empty_invalid_truncated_base64_or_utf8(field, payload)
- test_fold_checks_real_pdb_columns_sequence_and_complete_model · function · L649-L656 — def test_fold_checks_real_pdb_columns_sequence_and_complete_model(payload)
- test_confidence_must_be_nonempty_finite_json_object · function · L662-L669 — def test_confidence_must_be_nonempty_finite_json_object(payload)
- test_plddt_rows_must_match_modeled_residues · function · L681-L687 — def test_plddt_rows_must_match_modeled_residues(payload)
- test_both_mutation_csv_contracts_return_original_bytes · function · L697-L708 — def test_both_mutation_csv_contracts_return_original_bytes(payload)
- test_mutation_rejects_nonfinite_conflicting_or_malformed_csv · function · L734-L741 — def test_mutation_rejects_nonfinite_conflicting_or_malformed_csv(payload)
- test_mutation_summary_requires_object_matching_sequence_and_finite_values · function · L755-L762 — def test_mutation_summary_requires_object_matching_sequence_and_finite_values(summary)
- test_mutation_requires_nonempty_strict_base64_and_utf8 · function · L766-L773 — def test_mutation_requires_nonempty_strict_base64_and_utf8(payload)
- test_mutation_output_must_be_within_requested_positions · function · L776-L785 — def test_mutation_output_must_be_within_requested_positions()
- test_fold_optional_metadata_is_unknown_and_base64_whitespace_is_supported · function · L788-L803 — def test_fold_optional_metadata_is_unknown_and_base64_whitespace_is_supported()
- test_missing_protocol_or_invalid_utf8_never_copies_output · function · L810-L822 — def test_missing_protocol_or_invalid_utf8_never_copies_output(method, output, sequence)
- test_real_dispatcher_and_kernel_keep_single_key_error_to_runtime_error · function · L826-L852 — def test_real_dispatcher_and_kernel_keep_single_key_error_to_runtime_error(monkeypatch)
- test_fold_both_plddt_formats_keep_original_text · function · L858-L866 — def test_fold_both_plddt_formats_keep_original_text(payload)
- test_fold_legacy_plddt_rejects_incomplete_or_ambiguous_rows · function · L880-L887 — def test_fold_legacy_plddt_rejects_incomplete_or_ambiguous_rows(payload)
- test_sequence_error_uses_normalized_one_based_position_without_echo · function · L890-L894 — def test_sequence_error_uses_normalized_one_based_position_without_echo()
- test_truncated_or_duplicate_completion_marker_rejects_even_with_provenance · function · L904-L917 — def test_truncated_or_duplicate_completion_marker_rejects_even_with_provenance( method, output, sequence, marker )
- test_malformed_metadata_does_not_fall_back_to_registered_engine · function · L939-L950 — def test_malformed_metadata_does_not_fall_back_to_registered_engine( method, output, sequence, field, value )
- test_mutation_summary_entries_must_match_validated_csv · function · L968-L979 — def test_mutation_summary_entries_must_match_validated_csv(top5)
- test_mutation_rejects_missing_requested_position_without_guessing_candidate_count · function · L983-L993 — def test_mutation_rejects_missing_requested_position_without_guessing_candidate_count( positions, )
- test_mutation_does_not_publish_mean_without_a_declared_statistic_contract · function · L996-L1008 — def test_mutation_does_not_publish_mean_without_a_declared_statistic_contract()
- test_fold_rejects_atoms_outside_complete_pdb_model_boundaries · function · L1022-L1029 — def test_fold_rejects_atoms_outside_complete_pdb_model_boundaries(payload)
- test_valid_mutation_summary_keeps_verified_entries_without_fixed_candidates_per_position · function · L1039-L1051 — def test_valid_mutation_summary_keeps_verified_entries_without_fixed_candidates_per_position( row, )
- test_fold_accepts_a_complete_single_model_with_explicit_boundaries · function · L1054-L1064 — def test_fold_accepts_a_complete_single_model_with_explicit_boundaries()
- _fold_service · function · L1067-L1071 — def _fold_service(output: str) -> RemoteScienceService
- _score_service · function · L1074-L1080 — def _score_service(output: str) -> RemoteScienceService
- test_csv_trailing_blank_line_or_bom_is_not_a_malformed_result · function · L1094-L1100 — def test_csv_trailing_blank_line_or_bom_is_not_a_malformed_result(decorate)
- test_blank_line_between_csv_rows_is_still_malformed · function · L1103-L1108 — def test_blank_line_between_csv_rows_is_still_malformed()
- test_top5_score_tolerates_two_serializations_of_one_number · function · L1111-L1129 — def test_top5_score_tolerates_two_serializations_of_one_number()
- test_numeric_text_fields_must_be_ascii_decimals · function · L1133-L1139 — def test_numeric_text_fields_must_be_ascii_decimals(value)
- test_numeric_text_fields_accept_ascii_decimals · function · L1142-L1148 — def test_numeric_text_fields_accept_ascii_decimals()
- test_pdb_coordinate_with_a_digit_separator_is_rejected_not_passed_through · function · L1151-L1156 — def test_pdb_coordinate_with_a_digit_separator_is_rejected_not_passed_through()
- test_non_finite_confidence_is_diagnosed_as_non_finite_not_invalid_json · function · L1159-L1163 — def test_non_finite_confidence_is_diagnosed_as_non_finite_not_invalid_json()
- test_every_empty_positions_spelling_shares_one_message · function · L1166-L1180 — def test_every_empty_positions_spelling_shares_one_message()