Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–24 unchanged (24 lines)
25 ('THEFUCK_OVERRIDDEN_ALIASES', 'cut,git,sed'),
26 ('THEFUCK_OVERRIDDEN_ALIASES', 'cut, git, sed'),
27 ('THEFUCK_OVERRIDDEN_ALIASES', ' cut,\tgit,sed\n'),
28 ('THEFUCK_OVERRIDDEN_ALIASES', '\ncut,\n\ngit,\tsed\r')])
29 def test_get_overridden_aliases(self, shell, os_environ, key, value):
30 os_environ[key] = value
31 assert shell._get_overridden_aliases() == {'cd', 'cut', 'git', 'grep',
32 'ls', 'man', 'open', 'sed'}
33
34 @pytest.mark.parametrize('before, after', [
35 ('cd', 'cd'),
36 ('pwd', 'pwd'),
37 ('fuck', 'fish -ic "fuck"'),
38 ('find', 'find'),
…lines 39–120 unchanged (82 lines)

After

…lines 1–24 unchanged (24 lines)
25 ('THEFUCK_OVERRIDDEN_ALIASES', 'cut,git,sed'),
26 ('THEFUCK_OVERRIDDEN_ALIASES', 'cut, git, sed'),
27 ('THEFUCK_OVERRIDDEN_ALIASES', ' cut,\tgit,sed\n'),
28 ('THEFUCK_OVERRIDDEN_ALIASES', '\ncut,\n\ngit,\tsed\r')])
29 def test_get_overridden_aliases(self, shell, os_environ, key, value):
30 os_environ[key] = value
31 overridden = shell._get_overridden_aliases()
32 assert set(overridden) == {'cd', 'cut', 'git', 'grep',
33 'ls', 'man', 'open', 'sed'}
34
35 @pytest.mark.parametrize('before, after', [
36 ('cd', 'cd'),
37 ('pwd', 'pwd'),
38 ('fuck', 'fish -ic "fuck"'),
39 ('find', 'find'),
…lines 40–121 unchanged (82 lines)

Before

module
comment "# -*- coding: utf-8 -*-"
import_statement
import "import"
dotted_name
identifier "pytest"
import_from_statement
from "from"
dotted_name
identifier "thefuck"
. "."
identifier "shells"
import "import"
dotted_name
identifier "Fish"
decorated_definition
decorator (+27 nodes collapsed)
class_definition
class "class"
identifier "TestFish"
argument_list
( "("
identifier "object"
) ")"
: ":"
block
decorated_definition (+23 nodes collapsed)
decorated_definition (+115 nodes collapsed)
decorated_definition
decorator (+93 nodes collapsed)
function_definition
def "def"
identifier "test_get_overridden_aliases"
parameters
( "("
identifier "self"
, ","
identifier "shell"
, ","
identifier "os_environ"
, ","
identifier "key"
, ","
identifier "value"
) ")"
: ":"
block
expression_statement
assignment
subscript
identifier "os_environ"
[ "["
identifier "key"
] "]"
= "="
identifier "value"
assert_statement
assert "assert"
comparison_operator
call
attribute
identifier "shell"
. "."
identifier "_get_overridden_aliases"
argument_list
( "("
) ")"
== "=="
set (+42 nodes collapsed)
decorated_definition (+232 nodes collapsed)
function_definition (+31 nodes collapsed)
function_definition (+36 nodes collapsed)
function_definition (+36 nodes collapsed)
function_definition (+204 nodes collapsed)
function_definition (+131 nodes collapsed)
function_definition (+113 nodes collapsed)
function_definition (+70 nodes collapsed)
decorated_definition (+121 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+36 nodes collapsed)
function_definition (+81 nodes collapsed)

After

module
comment "# -*- coding: utf-8 -*-"
import_statement
import "import"
dotted_name
identifier "pytest"
import_from_statement
from "from"
dotted_name
identifier "thefuck"
. "."
identifier "shells"
import "import"
dotted_name
identifier "Fish"
decorated_definition
decorator (+27 nodes collapsed)
class_definition
class "class"
identifier "TestFish"
argument_list
( "("
identifier "object"
) ")"
: ":"
block
decorated_definition (+23 nodes collapsed)
decorated_definition (+115 nodes collapsed)
decorated_definition
decorator (+93 nodes collapsed)
function_definition
def "def"
identifier "test_get_overridden_aliases"
parameters
( "("
identifier "self"
, ","
identifier "shell"
, ","
identifier "os_environ"
, ","
identifier "key"
, ","
identifier "value"
) ")"
: ":"
block
expression_statement
assignment
subscript
identifier "os_environ"
[ "["
identifier "key"
] "]"
= "="
identifier "value"
expression_statement
assignment
identifier "overridden"
= "="
call
attribute
identifier "shell"
. "."
identifier "_get_overridden_aliases"
argument_list
( "("
) ")"
assert_statement
assert "assert"
comparison_operator
call
identifier "set"
argument_list
( "("
identifier "overridden"
) ")"
== "=="
set (+42 nodes collapsed)
decorated_definition (+232 nodes collapsed)
function_definition (+31 nodes collapsed)
function_definition (+36 nodes collapsed)
function_definition (+36 nodes collapsed)
function_definition (+204 nodes collapsed)
function_definition (+131 nodes collapsed)
function_definition (+113 nodes collapsed)
function_definition (+70 nodes collapsed)
decorated_definition (+121 nodes collapsed)
function_definition (+34 nodes collapsed)
function_definition (+36 nodes collapsed)
function_definition (+81 nodes collapsed)