from src.worker_payload import VALIDATE_EXISTING_SPACE_WORKER_SCRIPT, encoded_validate_existing_space_worker_script def test_validate_existing_payload_compiles(): compile(VALIDATE_EXISTING_SPACE_WORKER_SCRIPT, '', 'exec') def test_validate_existing_payload_exports_encoded_script(): assert isinstance(encoded_validate_existing_space_worker_script(), str) assert len(encoded_validate_existing_space_worker_script()) > 1000