fix pre-commit
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Successful in 1m47s
CI/CD Pipeline / Run Tests (push) Failing after 2m59s
CI/CD Pipeline / Run API Inventory E2E Tests (push) Has been skipped
CI/CD Pipeline / Telegram Notify Success (push) Has been skipped
CI/CD Pipeline / Code Quality Checks (pull_request) Successful in 3m13s
CI/CD Pipeline / Run Tests (pull_request) Failing after 3m15s
CI/CD Pipeline / Run API Inventory E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been skipped

This commit is contained in:
2026-03-23 11:21:56 +01:00
parent 82962309a0
commit 8b7b07c1c6

View File

@@ -206,7 +206,9 @@ class UserApiInventoryE2ETest(AuthenticatedApiMixin, APITestCase):
profile_full_response = self.client.get(reverse("api_v1:user:profile_full")) profile_full_response = self.client.get(reverse("api_v1:user:profile_full"))
self.assertEqual(profile_full_response.status_code, status.HTTP_200_OK) self.assertEqual(profile_full_response.status_code, status.HTTP_200_OK)
self.assertEqual(profile_full_response.data["username"], register_payload["username"]) self.assertEqual(
profile_full_response.data["username"], register_payload["username"]
)
password_change_response = self.client.post( password_change_response = self.client.post(
reverse("api_v1:user:password_change"), reverse("api_v1:user:password_change"),
@@ -628,7 +630,9 @@ class ExchangeApiInventoryE2ETest(AuthenticatedApiMixin, APITestCase):
format="json", format="json",
) )
active_connection = ExchangeConnection.objects.get(id=create_connection.data["id"]) active_connection = ExchangeConnection.objects.get(
id=create_connection.data["id"]
)
get_active_connection_mock.return_value = active_connection get_active_connection_mock.return_value = active_connection
delay_mock.return_value = SimpleNamespace(id="exchange-task-1") delay_mock.return_value = SimpleNamespace(id="exchange-task-1")
copy_response = self.client.post(copy_url, {"mode": "all"}, format="json") copy_response = self.client.post(copy_url, {"mode": "all"}, format="json")
@@ -688,7 +692,9 @@ class ExchangeApiInventoryE2ETest(AuthenticatedApiMixin, APITestCase):
) )
self.assertTrue(PeriodicTask.objects.filter(id=periodic_id).exists()) self.assertTrue(PeriodicTask.objects.filter(id=periodic_id).exists())
self.assertTrue(ExchangeConnection.objects.filter(id=active_connection.id).exists()) self.assertTrue(
ExchangeConnection.objects.filter(id=active_connection.id).exists()
)
class BackupsApiInventoryE2ETest(AuthenticatedApiMixin, APITestCase): class BackupsApiInventoryE2ETest(AuthenticatedApiMixin, APITestCase):