clean up access to various CredentialInputSource fields (#3336)

This commit is contained in:
Ryan Petrello
2019-02-28 10:21:48 -05:00
committed by Jake McDermott
parent 018ff91620
commit 011d7eb892
3 changed files with 11 additions and 18 deletions
+1 -1
View File
@@ -146,5 +146,5 @@ def mock_external_credential_input_sources():
# Credential objects query their related input sources on initialization.
# We mock that behavior out of credentials by default unless we need to
# test it explicitly.
with mock.patch.object(Credential, '_get_dynamic_input_field_names', new=lambda _: []) as _fixture:
with mock.patch.object(Credential, 'dynamic_input_fields', new=[]) as _fixture:
yield _fixture