-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add some missing tests #896
Conversation
✅ Deploy Preview for dlt-hub-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
60f9097
to
31b5ae8
Compare
@rudolfix questions:
|
a03fc46
to
5adf9c5
Compare
9c14c69
to
e183b1b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 2 tests need upgrade after few months of work
{"col1": 1}, | ||
] | ||
) | ||
columns = [new_column("_dlt_something", "bigint"), new_column("col2", "text")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because of SCD2 only _dlt_versions and loads are removed. other columns may be added. check the normalize and pls fix the test
tests/normalize/test_normalize.py
Outdated
@@ -708,3 +709,32 @@ def assert_timestamp_data_type(load_storage: LoadStorage, data_type: TDataType) | |||
event_schema = load_storage.normalized_packages.load_schema(loads[0]) | |||
# in raw normalize timestamp column must not be coerced to timestamp | |||
assert event_schema.get_table_columns("event")["timestamp"]["data_type"] == data_type | |||
|
|||
|
|||
def test_removal_of_normalizer_schema_section(raw_normalize: Normalize) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so this test must be a little extended.
- we remove evolove-columns-once
- but we add
seen-data
to all tables that had data items (see shcema utils: has_table_seen_data)
this is a good test, needs to be upgraded
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Tasks
original ticket: #787