File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,8 @@ def test_diff_with_copied_file(self):
121
121
122
122
diff = diffs [0 ]
123
123
assert_true (diff .copied_file )
124
+ assert_true (diff .a_path , u'test1.txt' )
125
+ assert_true (diff .b_path , u'test2.txt' )
124
126
assert isinstance (str (diff ), str )
125
127
126
128
output = StringProcessAdapter (fixture ('diff_copied_mode_raw' ))
@@ -129,9 +131,10 @@ def test_diff_with_copied_file(self):
129
131
diff = diffs [0 ]
130
132
self .assertEqual (diff .change_type , 'C' )
131
133
self .assertEqual (diff .score , 100 )
134
+ self .assertEqual (diff .a_path , u'test1.txt' )
135
+ self .assertEqual (diff .b_path , u'test2.txt' )
132
136
self .assertEqual (len (list (diffs .iter_change_type ('C' ))), 1 )
133
137
134
-
135
138
def test_diff_with_change_in_type (self ):
136
139
output = StringProcessAdapter (fixture ('diff_change_in_type' ))
137
140
diffs = Diff ._index_from_patch_format (self .rorepo , output )
You can’t perform that action at this time.
0 commit comments