def test_delete_file(self, client): client.return_value.list_blobs.return_value = MockBlobList([]) base_path = "path/test.txt" store = AzureBlobStoreService() key_path = self.wasbs_base + base_path # Test without basename store.delete(key_path) client.return_value.delete_blob.assert_called_with("container", "path/test.txt")
def test_delete_file(self, client): client.return_value.walk_blobs.return_value = MockBlobList([]) base_path = "path/test.txt" store = AzureBlobStoreService() store.set_connection(connection=client) key_path = self.wasbs_base + base_path # Test without basename store.delete(key_path) client.get_container_client().delete_blob.assert_called_with("path/test.txt")