UT: Use Credentials.to_mapping() in test_credential_telem_send()

This commit is contained in:
Mike Salvatore 2022-07-18 09:23:21 -04:00
parent 068dbbe963
commit e5d3271b74
1 changed files with 1 additions and 6 deletions

View File

@ -19,12 +19,7 @@ def credentials_for_test():
def test_credential_telem_send(spy_send_telemetry, credentials_for_test):
expected_data = [
{
"identity": {"username": USERNAME, "credential_type": "USERNAME"},
"secret": {"password": PASSWORD, "credential_type": "PASSWORD"},
}
]
expected_data = [Credentials.to_mapping(credentials_for_test)]
telem = CredentialsTelem([credentials_for_test])
telem.send()