feat(registry): add new endpoints for registers, exchange, and backups; update routing and configurations
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Failing after 3m10s
CI/CD Pipeline / Run Tests (push) Successful in 3m35s
CI/CD Pipeline / Telegram Notify Success (push) Has been skipped
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 2m26s
CI/CD Pipeline / Run Tests (pull_request) Successful in 2m46s
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been skipped
Some checks failed
CI/CD Pipeline / Code Quality Checks (push) Failing after 3m10s
CI/CD Pipeline / Run Tests (push) Successful in 3m35s
CI/CD Pipeline / Telegram Notify Success (push) Has been skipped
CI/CD Pipeline / Code Quality Checks (pull_request) Failing after 2m26s
CI/CD Pipeline / Run Tests (pull_request) Successful in 2m46s
CI/CD Pipeline / Telegram Notify Success (pull_request) Has been skipped
This commit is contained in:
@@ -189,7 +189,9 @@ router.register(
|
||||
basename="profile-owner-public",
|
||||
)
|
||||
router.register("bulk-proxies", BulkProxyViewSet, basename="bulk-proxy")
|
||||
router.register("bulk-proxies-write", BulkWritableProxyViewSet, basename="bulk-proxy-write")
|
||||
router.register(
|
||||
"bulk-proxies-write", BulkWritableProxyViewSet, basename="bulk-proxy-write"
|
||||
)
|
||||
|
||||
urlpatterns = [path("", include(router.urls))]
|
||||
|
||||
@@ -283,9 +285,7 @@ class BaseViewSetIntegrationTest(APITestCase):
|
||||
self.assertTrue(response.data["success"])
|
||||
self.assertEqual(len(response.data["data"]), 2)
|
||||
self.assertIn("pagination", response.data["meta"])
|
||||
self.assertSetEqual(
|
||||
set(response.data["data"][0].keys()), {"id", "address"}
|
||||
)
|
||||
self.assertSetEqual(set(response.data["data"][0].keys()), {"id", "address"})
|
||||
|
||||
def test_list_without_pagination(self):
|
||||
ProxyFactory.create_batch(2)
|
||||
@@ -451,7 +451,9 @@ class BulkMixinIntegrationTest(APITestCase):
|
||||
self.assertEqual(response.data["errors"][0]["code"], "missing_ids")
|
||||
|
||||
def test_bulk_update_empty_items(self):
|
||||
response = self.client.patch("/bulk-proxies-write/bulk_update/", {}, format="json")
|
||||
response = self.client.patch(
|
||||
"/bulk-proxies-write/bulk_update/", {}, format="json"
|
||||
)
|
||||
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)
|
||||
self.assertFalse(response.data["success"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user