diff --git a/tests/auth_test/test_auth.py b/tests/auth_test/test_auth.py new file mode 100644 index 00000000..8ab7cf28 --- /dev/null +++ b/tests/auth_test/test_auth.py @@ -0,0 +1,47 @@ +"""Tests agrirouter/auth/auth.py""" + +from agrirouter import AuthUrlParameter +from agrirouter.auth.auth import Authorization +from tests.constants import ( + public_key, + private_key, + auth_result_url, + ENV, + application_id, +) +from re import search + + +class TestAuthorization: + def test_extract_auth_response(self): + auth_client = Authorization(ENV, public_key=public_key, private_key=private_key) + assert search( + "