Skip to content

Commit

Permalink
Test _sdc_table_version
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Nov 29, 2024
1 parent f22e730 commit 8117fd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/samples/test_target_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def test_sqlite_add_record_metadata(sqlite_target_add_record_metadata: SQLTarget
json.dumps(msg)
for msg in [
schema_msg,
{"type": "ACTIVATE_VERSION", "stream": test_tbl, "version": 12345},
{
"type": "RECORD",
"stream": test_tbl,
Expand Down Expand Up @@ -324,6 +325,9 @@ def test_sqlite_add_record_metadata(sqlite_target_add_record_metadata: SQLTarget
assert "_sdc_sync_started_at" in table.columns
assert type(table.columns["_sdc_sync_started_at"].type) is sa.INTEGER

assert "_sdc_table_version" in table.columns
assert type(table.columns["_sdc_table_version"].type) is sa.INTEGER


def test_sqlite_column_morph(sqlite_sample_target: SQLTarget):
"""End-to-end-to-end test for SQLite tap and target.
Expand Down

0 comments on commit 8117fd0

Please sign in to comment.