Align frontend API contracts and CI pipeline #15

Merged
avm merged 14 commits from feature/frontend-api-alignment-dev into dev 2026-03-23 14:12:22 +03:00
Showing only changes of commit 8b7b07c1c6 - Show all commits

View File

@@ -206,7 +206,9 @@ class UserApiInventoryE2ETest(AuthenticatedApiMixin, APITestCase):
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.data["username"], register_payload["username"])
self.assertEqual(
profile_full_response.data["username"], register_payload["username"]
)
password_change_response = self.client.post(
reverse("api_v1:user:password_change"),
@@ -628,7 +630,9 @@ class ExchangeApiInventoryE2ETest(AuthenticatedApiMixin, APITestCase):
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
delay_mock.return_value = SimpleNamespace(id="exchange-task-1")
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(ExchangeConnection.objects.filter(id=active_connection.id).exists())
self.assertTrue(
ExchangeConnection.objects.filter(id=active_connection.id).exists()
)
class BackupsApiInventoryE2ETest(AuthenticatedApiMixin, APITestCase):