@@ -113,18 +113,19 @@ def test_merge_conflicts_git(capsys):
113113 # Individual markers are not actually merge conflicts, need 3 markers
114114 # to mark a real conflict
115115 'contents, expected_retcode' ,
116- ((b'<<<<<<< ' , 0 ),
117- (b'=======' , 0 ),
118- (b'>>>>>>> ' ,0 ),
119- # Real conflict marker
120- (b'<<<<<<< HEAD\n =======\n >>>>>>> branch\n ' , 1 ),
121- # Allow for the possibility of an .rst file with a =======
122- # inside a conflict marker
123- (b'<<<<<<< HEAD\n =======\n =======\n >>>>>>> branch\n ' , 1 ),
124- )
116+ (
117+ (b'<<<<<<< ' , 0 ),
118+ (b'=======' , 0 ),
119+ (b'>>>>>>> ' , 0 ),
120+ # Real conflict marker
121+ (b'<<<<<<< HEAD\n =======\n >>>>>>> branch\n ' , 1 ),
122+ # Allow for the possibility of an .rst file with a =======
123+ # inside a conflict marker
124+ (b'<<<<<<< HEAD\n =======\n =======\n >>>>>>> branch\n ' , 1 ),
125+ ),
125126)
126127def test_merge_conflicts_with_rst (
127- contents , expected_retcode , repository_pending_merge
128+ contents , expected_retcode , repository_pending_merge ,
128129):
129130 repository_pending_merge .join ('f2.rst' ).write_binary (contents )
130131 assert main (['f2.rst' ]) == expected_retcode
@@ -149,14 +150,15 @@ def test_does_not_care_when_not_in_a_merge(tmpdir):
149150 f .write_binary (b'problem\n =======\n ' )
150151 assert main ([str (f .realpath ())]) == 0
151152
153+
152154@pytest .mark .parametrize (
153155 'contents, expected_retcode' ,
154156 (
155157 # Not a complete conflict marker
156158 (b'=======' , 0 ),
157159 # Complete conflict marker
158160 (b'<<<<<<< HEAD\n problem\n =======\n >>>>>>> branch\n ' , 1 ),
159- )
161+ ),
160162)
161163def test_care_when_assumed_merge (contents , expected_retcode , tmpdir ):
162164 f = tmpdir .join ('README.md' )
0 commit comments