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
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user