From 8a7b119246ef538615074a89875f739276550b8d Mon Sep 17 00:00:00 2001 From: Eric Duong Date: Tue, 12 Mar 2024 19:08:46 -0400 Subject: [PATCH] chore(data-warehouse): fix data warehouse schema tests (#20884) fix tests --- .../warehouse/api/test/test_external_data_source.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/posthog/warehouse/api/test/test_external_data_source.py b/posthog/warehouse/api/test/test_external_data_source.py index ba97dc6b4562e..23a4823e47754 100644 --- a/posthog/warehouse/api/test/test_external_data_source.py +++ b/posthog/warehouse/api/test/test_external_data_source.py @@ -161,7 +161,7 @@ def test_database_schema(self): postgres_connection.commit() - response = self.client.get( + response = self.client.post( f"/api/projects/{self.team.id}/external_data_sources/database_schema/", data={ "host": settings.PG_HOST, @@ -195,7 +195,7 @@ def test_internal_postgres(self, patch_get_postgres_schemas): with override_settings(CLOUD_DEPLOYMENT="US"): team_2, _ = Team.objects.get_or_create(id=2, organization=self.team.organization) - response = self.client.get( + response = self.client.post( f"/api/projects/{team_2.id}/external_data_sources/database_schema/", data={ "host": "172.16.0.0", @@ -211,7 +211,7 @@ def test_internal_postgres(self, patch_get_postgres_schemas): new_team = Team.objects.create(name="new_team", organization=self.team.organization) - response = self.client.get( + response = self.client.post( f"/api/projects/{new_team.id}/external_data_sources/database_schema/", data={ "host": "172.16.0.0", @@ -227,7 +227,7 @@ def test_internal_postgres(self, patch_get_postgres_schemas): with override_settings(CLOUD_DEPLOYMENT="EU"): team_1, _ = Team.objects.get_or_create(id=1, organization=self.team.organization) - response = self.client.get( + response = self.client.post( f"/api/projects/{team_1.id}/external_data_sources/database_schema/", data={ "host": "172.16.0.0", @@ -243,7 +243,7 @@ def test_internal_postgres(self, patch_get_postgres_schemas): new_team = Team.objects.create(name="new_team", organization=self.team.organization) - response = self.client.get( + response = self.client.post( f"/api/projects/{new_team.id}/external_data_sources/database_schema/", data={ "host": "172.16.0.0",