Skip to content

Commit

Permalink
adjust test to account for null status
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE committed Jul 1, 2024
1 parent 1183a36 commit facde36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posthog/hogql/database/test/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def test_serialize_database_warehouse_table_source(self):
source=source,
table=warehouse_table,
should_sync=True,
status=ExternalDataSchema.Status.COMPLETED,
last_synced_at="2024-01-01",
# No status but should be completed because a data warehouse table already exists
)

database = create_hogql_database(team_id=self.team.pk)
Expand All @@ -183,7 +183,7 @@ def test_serialize_database_warehouse_table_source(self):
assert table.schema_.name == "table_1"
assert table.schema_.should_sync is True
assert table.schema_.incremental is False
assert table.schema_.status == "Completed"
assert table.schema_.status is None
assert table.schema_.last_synced_at == "2024-01-01 00:00:00+00:00"

field = table.fields.get("id")
Expand Down

0 comments on commit facde36

Please sign in to comment.