Skip to content

Instantly share code, notes, and snippets.

@kshitijcode
Created November 29, 2021 04:45
Show Gist options
  • Save kshitijcode/105fd2d7b2bcbbcd61182a2b7205b8bd to your computer and use it in GitHub Desktop.
Save kshitijcode/105fd2d7b2bcbbcd61182a2b7205b8bd to your computer and use it in GitHub Desktop.
Clean Up Code
@pytest.fixture(autouse=True)
def run_before_and_after_tests(adls_connection_client,
base_path: str,
container_name: str,
azure_credential,
synapse_endpoint):
yield
print("STARTING TO CLEAN UP .....")
adls.cleanup_ADLS_files(adls_connection_client,
container_name, CLEANUP_FOLDERS)
print(CLEANUP_TABLES)
params = { "table_name": CLEANUP_TABLES}
pipelineutils.run_and_observe_pipeline(azure_credential, synapse_endpoint, constants.INTEGRATIONTEST_CLEANUP_PIPELINE, params)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment