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

@@ -19,6 +19,12 @@ MOCK_REQUEST = RequestFactory.create(
},
}
)
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"
class MockApiClient(ApiClient):