예제 #1
0
 def test_get_available_tenants(self, patch_post):
     tenants = [
         {"id": "a", "name": "a-name", "slug": "a-slug"},
         {"id": "b", "name": "b-name", "slug": "b-slug"},
         {"id": "c", "name": "c-name", "slug": "c-slug"},
     ]
     post = patch_post({"data": {"tenant": tenants}})
     client = Client()
     gql_tenants = client.get_available_tenants()
     assert gql_tenants == tenants