Skip to content

Commit

Permalink
chore(data-warehouse): fix data warehouse schema tests (#20884)
Browse files Browse the repository at this point in the history
fix tests
  • Loading branch information
EDsCODE authored Mar 12, 2024
1 parent 40786e6 commit 8a7b119
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions posthog/warehouse/api/test/test_external_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 8a7b119

Please sign in to comment.