def tearDownClass(cls) -> None: # Print result. print(json.dumps(cls.test_func_to_time, indent=4, sort_keys=True)) # Delete resource group. AzureController.delete_resource_group( resource_group=cls.resource_group) # Delete tmp test folder. shutil.rmtree(f"{GlobalPaths.ABS_MARO_TEST}/{cls.test_id}") # Delete docker image. try: command = "docker rmi maro_runtime_cpu:test" Subprocess.run(command=command) except CommandExecutionError: pass
def tearDownClass(cls) -> None: # Delete resource group after the test AzureController.delete_resource_group(cls.resource_group)