chore: fix mote A violations in tests and scripts

This commit is contained in:
Matthias
2024-07-05 08:54:49 +02:00
parent 4a4e6bc952
commit 1e287de589
5 changed files with 18 additions and 18 deletions

View File

@@ -133,8 +133,8 @@ def test_FtRestClient_call_invalid(caplog):
)
def test_FtRestClient_call_explicit_methods(method, args, kwargs):
client, mock = get_rest_client()
exec = getattr(client, method)
exec(*args, **kwargs)
executor = getattr(client, method)
executor(*args, **kwargs)
assert mock.call_count == 1