Skip to content

Commit 02b1497

Browse files
committed
Update & remove test relating to valid-replication-keys
1 parent bd524ef commit 02b1497

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

tests/test_elx/test_catalog.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
"selected": True,
7979
"selected-by-default": True,
8080
"table-key-properties": ["id"],
81-
"valid-replication-keys": ["updated_at"],
8281
},
8382
},
8483
],
@@ -154,32 +153,6 @@ def test_catalog_replication_key(tap: Tap):
154153
)
155154

156155

157-
def test_catalog_valid_replication_keys(tap: Tap):
158-
"""
159-
If we have an incremental stream, the catalog should have a metadata breadcrumb for the incremental
160-
stream containing the key: `valid-replication-keys`.
161-
162-
This key should be associated with a list containing the fields that could be used as replication keys.
163-
For example, the metadata breadcrumb of the stream should look as follows if `updated_at` is its replication_key.
164-
165-
"metadata": {
166-
"inclusion": "available",
167-
"selected": True,
168-
"selected-by-default": True,
169-
"table-key-properties": ["id"],
170-
"valid-replication-keys": ["updated_at"],
171-
}
172-
"""
173-
catalog_dict = tap.catalog.dict(by_alias=True)
174-
175-
replication_keys = catalog_dict["streams"][1]["metadata"][-1]["metadata"].get(
176-
"valid-replication-keys", None
177-
)
178-
179-
# Checks that value of `valid-replication-keys` equals to the replication-key
180-
assert replication_keys == [DEFAULT_CATALOG["streams"][1]["replication_key"]]
181-
182-
183156
def test_catalog_set_stream_replication_key(tap: Tap):
184157
"""If we define a replication key, the catalog should be updated."""
185158
catalog = tap.catalog

0 commit comments

Comments
 (0)