-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from Alexander-D-Lewis/feature/update-sdk-schema
update sdk schema with description, is_latest_version and update_beha…
- Loading branch information
Showing
4 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,9 @@ | |
dataset="rapid_sdk", | ||
sensitivity=SensitivityLevel.PUBLIC, | ||
owners=[Owner(name="Test", email="[email protected]")], | ||
description="test", | ||
update_behaviour="OVERWRITE", | ||
is_latest_version=True, | ||
) | ||
|
||
|
||
|
@@ -62,13 +65,19 @@ def test_create_schema_metadata_from_dict(self): | |
"dataset": "rapid_sdk", | ||
"sensitivity": SensitivityLevel.PUBLIC, | ||
"owners": [{"name": "Test", "email": "[email protected]"}], | ||
"description": "test", | ||
"update_behaviour": "OVERWRITE", | ||
"is_latest_version": True, | ||
} | ||
|
||
schema_metadata = SchemaMetadata(**_schema_metadata) | ||
assert schema_metadata.domain == "test" | ||
assert schema_metadata.dataset == "rapid_sdk" | ||
assert schema_metadata.sensitivity == "PUBLIC" | ||
assert schema_metadata.owners == [Owner(name="Test", email="[email protected]")] | ||
assert schema_metadata.description == "test" | ||
assert schema_metadata.update_behaviour == "OVERWRITE" | ||
assert schema_metadata.is_latest_version == True | ||
|
||
|
||
class TestColumn: | ||
|
@@ -265,6 +274,9 @@ def test_schema_returns_correct_dictionary(self): | |
"version": None, | ||
"key_value_tags": {}, | ||
"key_only_tags": [], | ||
"description": "test", | ||
"update_behaviour": "OVERWRITE", | ||
"is_latest_version": True, | ||
}, | ||
"columns": [ | ||
{ | ||
|