-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 36: increase test coverage of validation.py (#68)
* Rename to validation.py * Move filter_validation_dict_by_table_name to input_helpers.py, modify/add related tests * Minor change * Formatting * Add placeholder test classes * Move a bunch of GX data_context method calls to ValidationSettings.create_batch_definition * Start implementing TestGetOrAddValidationDefinition, mock create_batch_definition call * Make sure create_batch_definition only initialise_or_update_attributes when necessary * Stop printing of expectation suite * Simplify get_or_add_validation_definition, move parts to ValidationSettings * Add some todos * Remove dataclass decorator * Fix initialisation of ValidationSettings * Add another todo * Refactor more logic into ValidationSettings.create_validation_definition * Formatting * Remove get_or_add_validation_definition and test_get_or_add_validation_definition * Separate into ValidationSettings dataclass and ValidationRunner class * Formatting * Refactor some functions to only use ValidationRunner instance * Separate call to _set_data_context during init * Fix some imports * Add TestValidationRunner * Formatting * Pull action_list into ValidationRunner * Re-add __post_init__ to ValidationSettings * Add post-init checks * Make name derived variables private * Fix post-init checks * Fix broken tests * Added tests for create_action_list * Create empty list upon each call to create_action_list * Make _initialise_or_update_name_parameters private, call upon init * Pull add_expectations_to_suite into ValidationRunner * Pull _get_or_add_checkpoint and run_validation into ValidationRunner * Add docstring and type hint, rename to run * Formatting * Fix broken tests * Remove validation_settings_obj as an argument * Update README.md * Rename check_name to validation_name * Fix broken tests * Add docstring and todo * Add test_get_gx_expectation_object * Simplify code by removing boolean send_..._notification arguments * Formatting * Add todo * Fix broken tests and imports * Add test_rules_dict_without_rules_field_results_in_table_schema_validation * Modify README.md * Add docstrings * Rename to validation_name * Remove test_get_or_add_checkpoint * Formatting * Add TODO + comments * Add docstrings * Update README.md * Modify docstrings, update README.md * Increase version * Update README.md * Fix broken test_extract_table_data_returns_correct_list * Fix some tests in test_common.py * Modify README.md * Add test for _get_or_add_expectation_suite * Add another test for _get_gx_expectation_object * Add test for add_expectations_to_suite * Formatting * Remove test * Add some comments and todos * Make action_list tests more explicit * Remove some 'pragma: no cover' statements * Fix use of MicrosoftTeamsNotificationAction * Minor changes * Minor changes * Modify docstring --------- Co-authored-by: bas <[email protected]>
- Loading branch information
Showing
12 changed files
with
840 additions
and
334 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "dq-suite-amsterdam" | ||
version = "0.11.2" | ||
version = "0.11.3" | ||
authors = [ | ||
{ name="Arthur Kordes", email="[email protected]" }, | ||
{ name="Aysegul Cayir Aydar", email="[email protected]" }, | ||
|
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
"""DQ API.""" | ||
|
||
# from .common import ValidationSettings | ||
# from .other import schema_to_json_string | ||
# from .validation import run | ||
# | ||
# # Use __all__ to let developers know what is part of the public API. | ||
# __all__ = ["export_schema_to_json_string", "run", "ValidationSettings"] | ||
#from .common import ValidationSettings | ||
#from .df_checker import run | ||
#from .other import schema_to_json_string | ||
# __all__ = ["schema_to_json_string", "run", "ValidationSettings"] |
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
Oops, something went wrong.