test_worker.py
Source file: tests/build-worker/test_worker.py
Module: tests-build-worker
Size: 81 lines
SHA-256: 6c0c01d3e620a8af383cdc7652d9d93a781fe26a3b594b4dba0934414bd8b41f
Responsibility
Implements this named HSLG source responsibility; inspect its declarations and tests before changing behaviour.
Declared entry points
WorkerTests— source line 16.test_protected_source_zip_extracts_without_http_export— source line 17.test_archive_path_traversal_rejected— source line 26.test_excessive_unpack_rejected— source line 32.test_php_cli_bridge_does_not_accept_web_requests— source line 40.test_native_source_contains_no_php_secrets— source line 48.test_payload_identity_is_stable_across_packaging— source line 54.test_success_requires_apk_signature_verification_and_digest— source line 63.test_debug_zip_after_failure— source line 69.
Imports and dependencies
- Line 1:
import importlib.util - Line 2:
import io - Line 3:
import os - Line 5:
import tempfile - Line 6:
import unittest - Line 7:
import hashlib - Line 8:
import subprocess - Line 9:
import zipfile
Behaviour and audit locations
Review control flow and returned values in the named source file; no special integration marker was detected.
Relationship to the system
This page is the file-level source reference, not the architecture rationale. Read the module explanation, the corresponding architecture decision and user guide before changing behaviour. Names and line locations above are extracted from this exact source version; they are reference points, not proof that an external service or a phone feature works.
Change verification
Review the entry points and errors in this file, then run the module’s associated tests, source dependency gate, history gate and documentation coverage check. If the file changes an API response, user interaction, data model, deployment or third-party dependency, revise those human explanations and disaster recovery/licensing when relevant. Do not infer actual native or external API operation from source presence.