From 4b733ba383cabfd8138568c66c1e21c6cae41a81 Mon Sep 17 00:00:00 2001 From: Shreya Date: Thu, 27 May 2021 15:40:47 +0530 Subject: [PATCH] Fix unit tests (test_utils.py) --- .../unit_tests/monkey_island/cc/environment/test_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/tests/unit_tests/monkey_island/cc/environment/test_utils.py b/monkey/tests/unit_tests/monkey_island/cc/environment/test_utils.py index c2d7baeef..fa2c4202b 100644 --- a/monkey/tests/unit_tests/monkey_island/cc/environment/test_utils.py +++ b/monkey/tests/unit_tests/monkey_island/cc/environment/test_utils.py @@ -9,18 +9,18 @@ from monkey_island.cc.environment.utils import create_secure_directory, is_windo @pytest.fixture def test_path_nested(tmpdir): - nested_path = "/test1/test2/test3" + nested_path = "test1/test2/test3" path = os.path.join(tmpdir, nested_path) yield path try: - shutil.rmtree(os.path.join(tmpdir, "/test1")) + shutil.rmtree(os.path.join(tmpdir, "test1")) except Exception: pass @pytest.fixture def test_path(tmpdir): - test_path = "/test1" + test_path = "test1" path = os.path.join(tmpdir, test_path) yield path try: