← Về thư mục
tests/bids/test_scripts.py
- TemporaryReferencesTestCase · class · L35-L44 — class TemporaryReferencesTestCase(unittest.TestCase)
- setUp · method · L38-L44 — def setUp(self) -> None
- SchemaWriteTests · class · L47-L87 — class SchemaWriteTests(TemporaryReferencesTestCase)
- test_downloaded_schema_is_reserialised_with_stable_formatting · method · L54-L65 — def test_downloaded_schema_is_reserialised_with_stable_formatting(self) -> None: # Upstream ships minified JSON; the script re-indents so the checked-in # copy diffs sanely on the next update.
- test_the_reported_versions_come_from_the_payload · method · L67-L74 — def test_the_reported_versions_come_from_the_payload(self) -> None
- test_a_schema_without_version_fields_reports_unknown · method · L76-L81 — def test_a_schema_without_version_fields_reports_unknown(self) -> None
- test_a_non_json_response_fails_before_anything_is_written · method · L83-L87 — def test_a_non_json_response_fails_before_anything_is_written(self) -> None
- BepsWriteTests · class · L90-L110 — class BepsWriteTests(TemporaryReferencesTestCase)
- test_beps_are_written_verbatim_and_counted · method · L91-L104 — def test_beps_are_written_verbatim_and_counted(self) -> None
- test_the_counter_matches_the_format_of_the_shipped_file · method · L106-L110 — def test_the_counter_matches_the_format_of_the_shipped_file(self) -> None: # The count is a byte-substring search, so it only stays correct while # upstream keeps this exact indentation. Pin it against the real file.
- FetchTests · class · L113-L128 — class FetchTests(unittest.TestCase)
- test_requests_carry_an_identifying_user_agent · method · L114-L122 — def test_requests_carry_an_identifying_user_agent(self) -> None
- test_the_default_sources_are_https_and_upstream · method · L124-L128 — def test_the_default_sources_are_https_and_upstream(self) -> None
- ShippedReferenceTests · class · L131-L143 — class ShippedReferenceTests(unittest.TestCase)
- test_the_shipped_schema_parses_and_is_versioned · method · L134-L138 — def test_the_shipped_schema_parses_and_is_versioned(self) -> None
- test_the_references_directory_is_where_the_script_writes · method · L140-L143 — def test_the_references_directory_is_where_the_script_writes(self) -> None