feat: import additional exchange sections
All checks were successful
CI/CD Pipeline / Code Quality Checks (push) Successful in 2m41s
CI/CD Pipeline / Run Tests (push) Successful in 2m47s
CI/CD Pipeline / Build Docker Images (push) Successful in 2m24s
CI/CD Pipeline / Push to Gitea Registry (push) Successful in 0s
CI/CD Pipeline / Deploy to Server (push) Successful in 0s
All checks were successful
CI/CD Pipeline / Code Quality Checks (push) Successful in 2m41s
CI/CD Pipeline / Run Tests (push) Successful in 2m47s
CI/CD Pipeline / Build Docker Images (push) Successful in 2m24s
CI/CD Pipeline / Push to Gitea Registry (push) Successful in 0s
CI/CD Pipeline / Deploy to Server (push) Successful in 0s
This commit is contained in:
@@ -230,15 +230,21 @@ class OrganizationApiTest(APITestCase):
|
||||
|
||||
response = self.client.get("/api/v1/organizations/?registry_category=goz")
|
||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||
self.assertEqual([item["id"] for item in response.data["results"]], [str(goz_org.id)])
|
||||
self.assertEqual(
|
||||
[item["id"] for item in response.data["results"]], [str(goz_org.id)]
|
||||
)
|
||||
|
||||
response = self.client.get("/api/v1/organizations/?registryCategory=opk")
|
||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||
self.assertEqual([item["id"] for item in response.data["results"]], [str(opk_org.id)])
|
||||
self.assertEqual(
|
||||
[item["id"] for item in response.data["results"]], [str(opk_org.id)]
|
||||
)
|
||||
|
||||
response = self.client.get("/api/v1/organizations/?registry_category=other")
|
||||
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
||||
self.assertIn(str(other_org.id), [item["id"] for item in response.data["results"]])
|
||||
self.assertIn(
|
||||
str(other_org.id), [item["id"] for item in response.data["results"]]
|
||||
)
|
||||
|
||||
|
||||
class OrganizationDictionaryApiTest(APITestCase):
|
||||
|
||||
Reference in New Issue
Block a user