This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user