Skip to content
Snippets Groups Projects
Unverified Commit 43db0e45 authored by epenet's avatar epenet Committed by GitHub
Browse files

Fix pylint warnings in xiaomi tests (#119373)

parent f9cf7598
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ def mocked_requests(*args, **kwargs):
class MockResponse:
"""Class to represent a mocked response."""
def __init__(self, json_data, status_code):
def __init__(self, json_data, status_code) -> None:
"""Initialize the mock response class."""
self.json_data = json_data
self.status_code = status_code
......@@ -48,6 +48,7 @@ def mocked_requests(*args, **kwargs):
raise requests.HTTPError(self.status_code)
data = kwargs.get("data")
# pylint: disable-next=global-statement
global FIRST_CALL # noqa: PLW0603
if data and data.get("username", None) == INVALID_USERNAME:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment