Fix deprecation warnings

This commit is contained in:
2022-08-03 21:48:37 +02:00
parent 2556427c7d
commit dee24fbc9c
6 changed files with 88 additions and 88 deletions

View File

@ -59,7 +59,7 @@ class EbouticTest(TestCase):
with open("./eboutic/tests/public_key.pem") as f:
settings.SITH_EBOUTIC_PUB_KEY = f.read()
privkey = crypto.load_privatekey(crypto.FILETYPE_PEM, PRIVKEY)
sig = crypto.sign(privkey, query, "sha1")
sig = crypto.sign(privkey, query.encode("utf-8"), "sha1")
b64sig = base64.b64encode(sig).decode("ascii")
url = reverse("eboutic:etransation_autoanswer") + "?%s&Sig=%s" % (