visch
10/29/2021, 3:04 PMvisch
10/29/2021, 3:08 PMpytestmeltano elt tap-name target-postgres --transform dbt:teststephen_bailey
10/29/2021, 3:08 PMvisch
10/29/2021, 3:09 PMstephen_bailey
10/29/2021, 3:09 PMvisch
10/29/2021, 3:09 PMmeltano elt tap-name target-postgres --transform dbt:testmeltano dbt:teststephen_bailey
10/29/2021, 3:10 PMstephen_bailey
10/29/2021, 3:10 PMvisch
10/29/2021, 3:11 PMstephen_bailey
10/29/2021, 3:11 PMvisch
10/29/2021, 3:12 PMtarget-*dbtstephen_bailey
10/29/2021, 3:13 PMth.Property("updated_at", th.DateTimeType, expectations=["is_valid_timestamp", "not_null"])pytestnot_nullis_valid_timestampvisch
10/29/2021, 3:14 PM"select (*) from tasks where archived = 'true'stephen_bailey
10/29/2021, 3:15 PMvisch
10/29/2021, 3:15 PMvisch
10/29/2021, 3:15 PMdbtstephen_bailey
10/29/2021, 3:16 PMdef test_archived_tasks_greater_than_zero(test_util):
    records = self.records["tasks"]
    assert len(r for r in records if r["archived"]) > 0taylor
10/29/2021, 7:18 PMtaylor
10/29/2021, 7:18 PMtaylor
10/29/2021, 7:18 PMvisch
10/29/2021, 7:19 PMtaylor
10/29/2021, 7:20 PMvisch
10/29/2021, 7:21 PMvisch
10/29/2021, 7:23 PMpodman run -e POSTGRES_PASSWORD=postgres -p 5432:5432 -h postgres -d postgrestaylor
10/29/2021, 7:23 PMtaylor
10/29/2021, 7:23 PMvisch
10/29/2021, 7:23 PMvisch
10/29/2021, 7:23 PMtaylor
10/29/2021, 7:23 PMvisch
10/29/2021, 7:23 PMvisch
10/29/2021, 7:24 PMstephen_bailey
11/01/2021, 6:28 PMtest_manifestpytest.mark.parameterizetest_nameTEST_MANIFEST = [
    ("tap__cli", {}),
    ("tap__discovery", {}),
    ("tap__stream_connections", {}),
    ("stream__catalog_schema_matches_record", {"stream_name": "channels"}),
    ("stream__record_schema_matches_catalog", {"stream_name": "channels"}),
    ...
    ("stream__returns_record", {"stream_name": "users"}),
    ("stream__primary_key", {"stream_name": "users"}),
    ("attribute__unique", {"stream_name": "channels", "attribute_name": "id"}),
    ("attribute__not_null", {"stream_name": "channels", "attribute_name": "id"}),
]@pytest.mark.parametrize(
    "test_config", TEST_MANIFEST
)
def test_builtin_tap_tests(test_util, test_config):
    test_name, params = test_config
    test_func = test_util.available_tests[test_name]
    test_func(**params)stephen_bailey
11/01/2021, 6:28 PMvisch
11/02/2021, 1:07 PMstephen_bailey
11/02/2021, 3:59 PM