← Về thư mục
- _extract_js_function · function · L42-L94 — def _extract_js_function(source: str, name: str, *, required: bool = True) -> str
- _extract_i18n · function · L97-L102 — def _extract_i18n(lang: str) -> str
- _node · function · L105-L109 — def _node() -> str
- _run · function · L112-L130 — def _run(script: str, *args: str) -> dict: # The harnesses inline both I18N dictionaries, so the script grows with # every translated string.
node -e carries it as one argv entry, and # Linux caps a single argument at MAX_ARG_STRLEN (128 KiB): crossing that # turns every test here into OSError: [Errno 7] Argument list too long, # which reads as a broken harness rather than "one more phrase was # translated". A file has no such ceiling. -e still runs the require, so # process.argv keeps starting at the first test argument.
- _menu · function · L149-L156 — def _menu(lang: str, served) -> list[dict]
- test_every_protocol_the_daemon_accepts_can_be_chosen · function · L160-L165 — def test_every_protocol_the_daemon_accepts_can_be_chosen(lang)
- test_each_offered_protocol_reads_as_prose_in_both_languages · function · L169-L175 — def test_each_offered_protocol_reads_as_prose_in_both_languages(lang)
- test_a_protocol_with_no_translation_yet_is_still_selectable · function · L178-L183 — def test_a_protocol_with_no_translation_yet_is_still_selectable()
- test_a_daemon_too_old_to_send_the_catalogue_leaves_the_form_usable · function · L186-L190 — def test_a_daemon_too_old_to_send_the_catalogue_leaves_the_form_usable()
- test_the_menu_ignores_values_that_are_not_protocol_ids · function · L193-L197 — def test_the_menu_ignores_values_that_are_not_protocol_ids()
- _open_pane · function · L258-L268 — def _open_pane() -> dict
- test_opening_the_models_pane_does_not_scan_local_servers · function · L271-L279 — def test_opening_the_models_pane_does_not_scan_local_servers()
- test_the_scan_still_happens_when_the_button_is_pressed · function · L282-L288 — def test_the_scan_still_happens_when_the_button_is_pressed()
- test_the_generated_menu_is_the_control_the_user_sees · function · L291-L295 — def test_the_generated_menu_is_the_control_the_user_sees()