mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-31 07:04:12 +00:00 
			
		
		
		
	#611: Allow to configure alias automatically by calling fuck twice
				
					
				
			This commit is contained in:
		| @@ -95,3 +95,12 @@ class TestFish(object): | ||||
|         shell.put_to_history(entry) | ||||
|         builtins_open.return_value.__enter__.return_value. \ | ||||
|             write.assert_called_once_with(entry_utf8) | ||||
|  | ||||
|     def test_how_to_configure(self, shell, config_exists): | ||||
|         config_exists.return_value = True | ||||
|         assert shell.how_to_configure().can_configure_automatically | ||||
|  | ||||
|     def test_how_to_configure_when_config_not_found(self, shell, | ||||
|                                                     config_exists): | ||||
|         config_exists.return_value = False | ||||
|         assert not shell.how_to_configure().can_configure_automatically | ||||
|   | ||||
		Reference in New Issue
	
	Block a user