Merge of nested IF-IF case in elkm1 test (#48374)

This commit is contained in:
Franck Nijhof 2021-03-26 17:54:16 +01:00 committed by GitHub
parent 00683d3caa
commit bbbc3a5f50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,9 +15,8 @@ def mock_elk(invalid_auth=None, sync_complete=None):
if type_ == "login":
if invalid_auth is not None:
callback(not invalid_auth)
elif type_ == "sync_complete":
if sync_complete:
callback()
elif type_ == "sync_complete" and sync_complete:
callback()
mocked_elk = MagicMock()
mocked_elk.add_handler.side_effect = handler_callbacks