Fix unittests

This commit is contained in:
hlohaus 2025-07-12 08:33:42 +02:00
parent 9bee0dd5ba
commit d6ba724bcc

View file

@ -12,6 +12,7 @@ from ...cookies import get_cookies_dir
def create_or_read_keys() -> tuple[RSAPrivateKey, RSAPublicKey]:
private_key_file = os.path.join(get_cookies_dir(), "private_key.pem")
public_key_file = os.path.join(get_cookies_dir(), "public_key.pem")
os.makedirs(os.path.dirname(private_key_file), exist_ok=True)
if os.path.isfile(private_key_file) and os.path.isfile(public_key_file):
# Read private key