mirror of
				https://github.com/nvbn/thefuck.git
				synced 2025-10-30 22:54:14 +00:00 
			
		
		
		
	#495: Alter history only when configured to do so
This commit is contained in:
		| @@ -74,10 +74,12 @@ class TestFish(object): | ||||
|         assert 'TF_ALIAS=fuck PYTHONIOENCODING' in shell.app_alias('fuck') | ||||
|         assert 'PYTHONIOENCODING=utf-8 thefuck' in shell.app_alias('fuck') | ||||
|  | ||||
|     def test_app_alias_history_merge(self, settings, shell): | ||||
|     def test_app_alias_alter_history(self, settings, shell): | ||||
|         settings.alter_history = True | ||||
|         assert 'history --delete' in shell.app_alias('FUCK') | ||||
|         assert 'history --merge' in shell.app_alias('FUCK') | ||||
|         settings.alter_history = False | ||||
|         assert 'history --delete' not in shell.app_alias('FUCK') | ||||
|         assert 'history --merge' not in shell.app_alias('FUCK') | ||||
|  | ||||
|     def test_get_history(self, history_lines, shell): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user