basic implementation of email parsing for CAC user login
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import pytest
|
||||
import atst.domain.authnid.utils as utils
|
||||
from tests.mocks import DOD_SDN
|
||||
from tests.mocks import DOD_SDN, FIXTURE_EMAIL_ADDRESS
|
||||
|
||||
|
||||
def test_parse_sdn():
|
||||
@@ -17,9 +17,6 @@ def test_parse_bad_sdn():
|
||||
utils.parse_sdn(None)
|
||||
|
||||
|
||||
FIXTURE_EMAIL_ADDRESS = "artgarfunkel@uso.mil"
|
||||
|
||||
|
||||
def test_parse_email_cert():
|
||||
cert_file = open("tests/fixtures/{}.crt".format(FIXTURE_EMAIL_ADDRESS), "rb").read()
|
||||
email = utils.email_from_certificate(cert_file)
|
||||
|
Reference in New Issue
Block a user