Created
November 30, 2021 04:32
-
-
Save kshitijcode/115b69a32d7ff5bbdaa5eb95db54514b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
pipeline_run_result = pipelineutils.run_and_observe_pipeline( | |
azure_credential, synapse_endpoint, pipeline_name, masterpipeline_processed_params) | |
assert pipeline_run_result == constants.PIPELINE_SUCCESS_STATUS | |
# Check for Data in processed Zone | |
cursor = sql_connection_client.cursor() | |
cursor.execute( | |
"SELECT COUNT(*) AS COUNT FROM [dbo].[{0}]".format(table_processed)) | |
row = cursor.fetchone() | |
assert row is not None | |
assert int(row.COUNT) >=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment