def test_get_path_gui(self): # Setup filedialog.askdirectory = lambda title: 'test_path' # Test self.assertEqual(ask_path_gui('test message', self.settings, get_file=False), 'test_path')