django-siwe-auth
django-siwe-auth copied to clipboard
Write tests for Wallet model and authentication logic
The title says it all.
Similarly, it'd be great to have an example for how projects with django-siwe-auth should authenticate users in their unit tests.
We probably need a minimal python implementation of MetaMask's ECDSA key setup & signing.
Oh, I think we can use the same tools that siwe-py used in their tests: https://github.com/spruceid/siwe-py/blob/main/tests/test_siwe.py mainly eth_account
TODO:
- Create tests for Wallet model
- Create tests around SiweBackend https://github.com/payton/django-siwe-auth/blob/e43e76e7238119a308e7633edbe24b585a62e2c8/siwe_auth/backend.py#L41-L45