Exemplo n.º 1
0
 def test_check_for_exceptions_3(self):
     app_paths = AppDataPaths(home_folder_path=os.getcwd())
     app_paths.clear(everything=True)
     try:
         app_paths.check_for_exceptions(raise_exceptions=True)
     except Exception:
         return
     assert False
Exemplo n.º 2
0
 def test_check_for_exceptions_8(self):
     app_paths = AppDataPaths(home_folder_path=os.getcwd())
     app_paths.setup()
     shutil.rmtree(app_paths.locks_path)
     assert not app_paths.check_for_exceptions(raise_exceptions=False)
     app_paths.clear(everything=True)
Exemplo n.º 3
0
 def test_check_for_exceptions_6(self):
     app_paths = AppDataPaths(home_folder_path=os.getcwd())
     app_paths.setup()
     os.remove(app_paths.log_file_path)
     assert not app_paths.check_for_exceptions(raise_exceptions=False)
     app_paths.clear(everything=True)
Exemplo n.º 4
0
 def test_check_for_exceptions_4(self):
     app_paths = AppDataPaths(home_folder_path=os.getcwd())
     app_paths.setup()
     assert app_paths.check_for_exceptions(raise_exceptions=False)
     app_paths.clear(everything=True)
Exemplo n.º 5
0
 def test_check_for_exceptions_1(self):
     app_paths = AppDataPaths(home_folder_path=os.getcwd())
     app_paths.clear(everything=True)
     assert app_paths.check_for_exceptions() is False