extract get_current_user, fix tests

This commit is contained in:
dandds
2018-08-06 09:18:53 -04:00
parent ea5c9732ba
commit ad1e1e771b
4 changed files with 26 additions and 15 deletions

View File

@@ -1,13 +1,8 @@
from flask import session
from .mocks import DOD_SDN
MOCK_USER = {"id": "438567dd-25fa-4d83-a8cc-8aa8366cb24a"}
DOD_SDN_INFO = {
'first_name': 'ART',
'last_name': 'GARFUNKEL',
'dod_id': '5892460358'
}
DOD_SDN = f"CN={DOD_SDN_INFO['last_name']}.{DOD_SDN_INFO['first_name']}.G.{DOD_SDN_INFO['dod_id']},OU=OTHER,OU=PKI,OU=DoD,O=U.S. Government,C=US"
def _fetch_user_info(c, t):