From 6109fd920ba477f89e83fea3df9803232c169463 Mon Sep 17 00:00:00 2001 From: Hind-M Date: Thu, 3 Feb 2022 10:24:38 +0100 Subject: Remove archive folder before testing wrapping functions --- src/python/test/test_remote_datasets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/python/test/test_remote_datasets.py b/src/python/test/test_remote_datasets.py index 5e607d73..93a8a982 100644 --- a/src/python/test/test_remote_datasets.py +++ b/src/python/test/test_remote_datasets.py @@ -78,6 +78,9 @@ def test_fetch_remote_datasets(): # Test not printing bunny.npy LICENSE when accept_license = True assert "" == _get_bunny_license_print(accept_license = True).getvalue() + # Remove "remote_datasets" directory and all its content + import shutil + shutil.rmtree("remote_datasets") # Test fetch_spiral_2d and fetch_bunny wrapping functions (twice, to test case of already fetched files) for i in range(2): spiral_2d_arr = remote.fetch_spiral_2d() -- cgit v1.2.3