Skip to content

Commit ee4ffc3

Browse files
committed
Fix ansible sanity test errors
1 parent 43d33d0 commit ee4ffc3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/unit/plugins/httpapi/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"""
1818

1919
import pytest
20-
from unittest.mock import Mock, MagicMock
20+
from unittest.mock import Mock
2121

2222

2323
@pytest.fixture

tests/unit/plugins/httpapi/test_dcnm_performance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_multiple_login_attempts_performance(self, mock_connection):
5555
start_time = time.time()
5656

5757
# Perform 100 login attempts
58-
for _ in range(100):
58+
for idx in range(100):
5959
http_api.login_succeeded = False # Reset state
6060
http_api.login("admin", "password")
6161

@@ -76,7 +76,7 @@ def test_json_parsing_performance(self, mock_connection):
7676
start_time = time.time()
7777

7878
# Parse JSON 100 times
79-
for _ in range(100):
79+
for idx in range(100):
8080
http_api._response_to_json(large_json)
8181

8282
end_time = time.time()
@@ -101,7 +101,7 @@ def test_response_verification_performance(self, mock_connection):
101101
start_time = time.time()
102102

103103
# Verify 1000 responses
104-
for _ in range(1000):
104+
for idx in range(1000):
105105
http_api._verify_response(mock_response, "GET", "/api/test", mock_rdata)
106106

107107
end_time = time.time()

0 commit comments

Comments
 (0)