@@ -181,39 +181,39 @@ def test_commit_relative(self):
181181 self .__assert_commit (self .TRACKED_FP , self .DIR_TRACKED_FP )
182182
183183 def test_commit_only (self ):
184- gl .commit (o = self .TRACKED_FP , m = ' msg' )
184+ gl .commit (self .TRACKED_FP , m = " msg" )
185185 self .__assert_commit (self .TRACKED_FP )
186186
187187 def test_commit_only_relative (self ):
188188 os .chdir (self .DIR )
189- self .assertRaises (ErrorReturnCode , gl .commit , o = self .TRACKED_FP , m = 'msg' )
190- gl .commit (o = '../' + self .TRACKED_FP , m = 'msg' )
189+ self .assertRaises (ErrorReturnCode , gl .commit , self .TRACKED_FP , "- m='msg'" )
190+ gl .commit ('../' + self .TRACKED_FP , m = 'msg' )
191191 self .__assert_commit (self .TRACKED_FP )
192192
193193 def test_commit_only_untrack (self ):
194- gl .commit (o = self . UNTRACKED_FP , m = 'msg' )
194+ gl .commit ("- m='msg'" , self . UNTRACKED_FP )
195195 self .__assert_commit (self .UNTRACKED_FP )
196196
197197 def test_commit_only_untrack_relative (self ):
198198 os .chdir (self .DIR )
199- self .assertRaises (ErrorReturnCode , gl .commit , o = self .UNTRACKED_FP , m = 'msg' )
200- gl .commit (o = '../' + self .UNTRACKED_FP , m = 'msg' )
199+ self .assertRaises (ErrorReturnCode , gl .commit , self .UNTRACKED_FP , m = 'msg' )
200+ gl .commit ('../' + self .UNTRACKED_FP , m = 'msg' )
201201 self .__assert_commit (self .UNTRACKED_FP )
202202
203203 def test_commit_include (self ):
204- gl .commit (m = 'msg' , include = self .UNTRACKED_FP )
204+ gl .commit ("- m='msg'" , include = self .UNTRACKED_FP )
205205 self .__assert_commit (
206206 self .TRACKED_FP , self .DIR_TRACKED_FP , self .UNTRACKED_FP )
207207
208208 def test_commit_exclude_include (self ):
209- gl .commit (m = 'msg' , include = self .UNTRACKED_FP , exclude = self .TRACKED_FP )
209+ gl .commit ("- m='msg'" , include = self .UNTRACKED_FP , exclude = self .TRACKED_FP )
210210 self .__assert_commit (self .UNTRACKED_FP , self .DIR_TRACKED_FP )
211211
212212 def test_commit_no_files (self ):
213213 self .assertRaises (
214214 ErrorReturnCode , gl .commit , '--exclude' ,
215215 self .TRACKED_FP , self .DIR_TRACKED_FP , m = 'msg' )
216- self .assertRaises (ErrorReturnCode , gl .commit , o = 'non-existent' , m = 'msg' )
216+ self .assertRaises (ErrorReturnCode , gl .commit , 'non-existent' , m = 'msg' )
217217 self .assertRaises (
218218 ErrorReturnCode , gl .commit , m = 'msg' , exclude = 'non-existent' )
219219 self .assertRaises (
@@ -222,7 +222,7 @@ def test_commit_no_files(self):
222222 def test_commit_dir (self ):
223223 fp = 'dir/f'
224224 utils .write_file (fp )
225- gl .commit (o = fp , m = 'msg' )
225+ gl .commit (fp , m = 'msg' )
226226 self .__assert_commit ('dir/f' )
227227
228228 def __assert_commit (self , * expected_committed ):
@@ -247,7 +247,7 @@ def setUp(self):
247247 super (TestStatus , self ).setUp ()
248248 utils .write_file (self .TRACKED_DIR_FP )
249249 utils .write_file (self .UNTRACKED_DIR_FP )
250- gl .commit (o = self .TRACKED_DIR_FP , m = 'commit' )
250+ gl .commit (self .TRACKED_DIR_FP , m = 'commit' )
251251
252252 def test_status_relative (self ):
253253 utils .write_file (self .TRACKED_DIR_FP , contents = 'some modifications' )
@@ -276,7 +276,7 @@ class TestBranch(TestEndToEnd):
276276 def setUp (self ):
277277 super (TestBranch , self ).setUp ()
278278 utils .write_file ('f' )
279- gl .commit (o = 'f' , m = 'commit' )
279+ gl .commit ('f' , m = 'commit' )
280280
281281 def test_create (self ):
282282 gl .branch (c = self .BRANCH_1 )
@@ -318,7 +318,7 @@ class TestTag(TestEndToEnd):
318318 def setUp (self ):
319319 super (TestTag , self ).setUp ()
320320 utils .write_file ('f' )
321- gl .commit (o = 'f' , m = 'commit' )
321+ gl .commit ('f' , m = 'commit' )
322322
323323 def test_create (self ):
324324 gl .tag (c = self .TAG_1 )
@@ -353,15 +353,15 @@ def setUp(self):
353353 super (TestDiffFile , self ).setUp ()
354354 utils .write_file (self .TRACKED_FP )
355355 utils .write_file (self .DIR_TRACKED_FP )
356- gl .commit ('-o' , self .TRACKED_FP , self .DIR_TRACKED_FP , m = 'commit' )
356+ gl .commit (self .TRACKED_FP , self .DIR_TRACKED_FP , m = 'commit' )
357357 utils .write_file (self .UNTRACKED_FP )
358358
359359 def test_empty_diff (self ):
360360 if 'No files to diff' not in utils .stdout (gl .diff ()):
361361 self .fail ()
362362
363363 def test_diff_nonexistent_fp (self ):
364- err = utils .stderr (gl .diff (o = 'file' , _ok_code = [1 ]))
364+ err = utils .stderr (gl .diff ('file' , _ok_code = [1 ]))
365365 if 'doesn\' t exist' not in err :
366366 self .fail ()
367367
@@ -370,7 +370,7 @@ def test_basic_diff(self):
370370 out1 = utils .stdout (gl .diff ())
371371 if '+contents' not in out1 :
372372 self .fail ()
373- out2 = utils .stdout (gl .diff (o = self .TRACKED_FP ))
373+ out2 = utils .stdout (gl .diff (self .TRACKED_FP ))
374374 if '+contents' not in out2 :
375375 self .fail ()
376376 self .assertEqual (out1 , out2 )
@@ -385,14 +385,14 @@ def test_basic_diff_relative(self):
385385 if '+contents_dir_tracked' not in out1 :
386386 self .fail ()
387387 rel_dir_tracked_fp = os .path .relpath (self .DIR_TRACKED_FP , self .DIR )
388- out2 = utils .stdout (gl .diff (o = rel_dir_tracked_fp ))
388+ out2 = utils .stdout (gl .diff (rel_dir_tracked_fp ))
389389 if '+contents_dir_tracked' not in out2 :
390390 self .fail ()
391391
392392 def test_diff_dir (self ):
393393 fp = 'dir/dir/f'
394394 utils .write_file (fp , contents = 'contents' )
395- out = utils .stdout (gl .diff (o = fp ))
395+ out = utils .stdout (gl .diff (fp ))
396396 if '+contents' not in out :
397397 self .fail ()
398398
@@ -405,7 +405,7 @@ def test_diff_non_ascii(self):
405405 out1 = utils .stdout (gl .diff ())
406406 if '+' + contents not in out1 :
407407 self .fail ('out is ' + out1 )
408- out2 = utils .stdout (gl .diff (o = self .TRACKED_FP ))
408+ out2 = utils .stdout (gl .diff (self .TRACKED_FP ))
409409 if '+' + contents not in out2 :
410410 self .fail ('out is ' + out2 )
411411 self .assertEqual (out1 , out2 )
@@ -722,7 +722,7 @@ def assert_status_performance():
722722 def test_branch_switch_performance (self ):
723723 MAX_TOLERANCE = 100
724724
725- gl .commit (o = 'f1' , m = 'commit' )
725+ gl .commit ('f1' , m = 'commit' )
726726
727727 t = time .time ()
728728 gl .branch (c = 'develop' )
0 commit comments