Update tests/test_utils_path.py
Run CI Tests / test (push) Has been cancelled

This commit is contained in:
2025-07-29 20:14:39 +02:00
parent 1935c7f6bb
commit c93786a697
+2 -2
View File
@@ -9,7 +9,7 @@ import slic.utils.ask_yes_no
# Tests when user says yes to delete if the file exists
def test_can_create_all_files_user_says_yes():
slic.utils.ask_yes_no.ask_yes_no = lambda msg: True
slic.utils.ask_yes_no.ask_yes_no = lambda msg, **kwargs: True
tmp_dir = tempfile.mkdtemp()
f1 = os.path.join(tmp_dir, "a.txt") # exists
@@ -35,7 +35,7 @@ def test_can_create_all_files_user_says_yes():
# Tests when user says no to delete if the file exists
def test_can_create_all_files_user_says_no():
slic.utils.ask_yes_no.ask_yes_no = lambda msg: False
slic.utils.ask_yes_no.ask_yes_no = lambda msg, **kwargs: False
tmp_dir = tempfile.mkdtemp()
f1 = os.path.join(tmp_dir, "file1.txt") # exists