fix tests

This commit is contained in:
hjoaquim
2023-02-07 17:41:39 +00:00
parent ef12295f33
commit f013668ed7
3 changed files with 2704 additions and 3133 deletions

View File

@@ -1335,6 +1335,8 @@ def ask_file_overwrite(file_path: str) -> Tuple[bool, bool]:
# Jeroen asked for a flag to overwrite no matter what
if obbff.FILE_OVERWITE:
return False, True
if os.environ.get("TEST_MODE") == "True":
return False, True
if os.path.exists(file_path):
overwrite = input("\nFile already exists. Overwrite? [y/n]: ").lower()
if overwrite == "y":