fix(lint): resolve ruff errors in tests and run_tests.py
- Fix import sorting (I001) - Remove unused imports and variables (F401, F841) - Add noqa for test code (S106 hardcoded passwords, S314 XML parsing) - Auto-format with ruff format
This commit is contained in:
@@ -101,9 +101,7 @@ class APIPaginatedResponseTest(TestCase):
|
||||
def test_paginated_response(self):
|
||||
"""Test paginated response with correct metadata"""
|
||||
data = [{"id": 1}, {"id": 2}]
|
||||
response = api_paginated_response(
|
||||
data, page=1, page_size=10, total_count=25
|
||||
)
|
||||
response = api_paginated_response(data, page=1, page_size=10, total_count=25)
|
||||
|
||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||
self.assertEqual(response.data["data"], data)
|
||||
|
||||
Reference in New Issue
Block a user