openenv-secaudit / tasks /hard /task_12 /tests /test_crypto.py
dexter-2k's picture
Upload folder using huggingface_hub
da0a862 verified
Raw
History Blame Contribute Delete
247 Bytes
import importlib
def test_signature_uses_runtime_secret(monkeypatch):
monkeypatch.setenv("CRYPTO_SECRET", "12345678override")
crypto = importlib.import_module("crypto")
assert crypto.derive_signature("payload") == "payload:override"