@@ -96,7 +96,7 @@ def test_working(doltdb):
9696
9797def test_active_branch (create_test_table ):
9898 repo , test_table = create_test_table
99- assert "master " == repo .active_branch
99+ assert "main " == repo .active_branch
100100
101101
102102def test_merge_fast_forward (create_test_table ):
@@ -105,7 +105,7 @@ def test_merge_fast_forward(create_test_table):
105105 message_two = "Other branch"
106106 message_merge = "merge"
107107
108- # commit the current working set to master
108+ # commit the current working set to main
109109 repo .add (test_table )
110110 repo .commit (message_one )
111111
@@ -119,7 +119,7 @@ def test_merge_fast_forward(create_test_table):
119119 repo .commit (message_two )
120120
121121 # merge
122- repo .checkout ("master " )
122+ repo .checkout ("main " )
123123 repo .merge ("other" , message_merge )
124124
125125 commits = list (repo .log ().values ())
@@ -137,14 +137,14 @@ def test_merge_conflict(create_test_table):
137137 message_two = "Base branch new data"
138138 message_three = "Other branch"
139139 message_merge = "merge"
140- # commit the current working set to master
140+ # commit the current working set to main
141141 repo .add (test_table )
142142 repo .commit (message_one )
143143
144144 # create another branch from the working set
145145 repo .branch ("other" )
146146
147- # create a non-trivial commit against `master `
147+ # create a non-trivial commit against `main `
148148 repo .sql ('INSERT INTO `test_players` (`name`, `id`) VALUES ("Stan", 4)' )
149149 repo .add (test_table )
150150 repo .commit (message_two )
@@ -156,13 +156,13 @@ def test_merge_conflict(create_test_table):
156156 repo .commit (message_three )
157157
158158 # merge
159- repo .checkout ("master " )
159+ repo .checkout ("main " )
160160 repo .merge ("other" , message_merge )
161161
162162 commits = list (repo .log ().values ())
163- head_of_master = commits [0 ]
163+ head_of_main = commits [0 ]
164164
165- assert head_of_master .message == message_two
165+ assert head_of_main .message == message_two
166166
167167
168168def test_dolt_log (create_test_table ):
@@ -191,7 +191,7 @@ def test_dolt_log_scope(create_test_table):
191191 repo .sql ('INSERT INTO `test_players` (`name`, `id`) VALUES ("Stan", 4)' )
192192 repo .add (test_table )
193193 repo .commit (message_two )
194- repo .checkout ("master " )
194+ repo .checkout ("main " )
195195 commits = list (repo .log ().values ())
196196 current_commit = commits [0 ]
197197 previous_commit = commits [1 ]
@@ -244,14 +244,14 @@ def test_dolt_log_merge_commit(create_test_table):
244244 message_two = "Base branch new data"
245245 message_three = "Other branch"
246246 message_merge = "merge"
247- # commit the current working set to master
247+ # commit the current working set to main
248248 repo .add (test_table )
249249 repo .commit (message_one )
250250
251251 # create another branch from the working set
252252 repo .branch ("other" )
253253
254- # create a non-trivial commit against `master `
254+ # create a non-trivial commit against `main `
255255 repo .sql ('INSERT INTO `test_players` (`name`, `id`) VALUES ("Stan", 4)' )
256256 repo .add (test_table )
257257 repo .commit (message_two )
@@ -263,7 +263,7 @@ def test_dolt_log_merge_commit(create_test_table):
263263 repo .commit (message_three )
264264
265265 # merge
266- repo .checkout ("master " )
266+ repo .checkout ("main " )
267267 repo .merge ("other" , message_merge )
268268
269269 commits = list (repo .log ().values ())
@@ -348,14 +348,14 @@ def test_checkout_with_tables(create_test_table):
348348def test_branch (create_test_table ):
349349 repo , _ = create_test_table
350350 active_branch , branches = repo .branch ()
351- assert [active_branch .name ] == [branch .name for branch in branches ] == ["master " ]
351+ assert [active_branch .name ] == [branch .name for branch in branches ] == ["main " ]
352352
353353 repo .checkout ("dosac" , checkout_branch = True )
354- repo .checkout ("master " )
354+ repo .checkout ("main " )
355355 next_active_branch , next_branches = repo .branch ()
356356 assert (
357- set (branch .name for branch in next_branches ) == {"master " , "dosac" }
358- and next_active_branch .name == "master "
357+ set (branch .name for branch in next_branches ) == {"main " , "dosac" }
358+ and next_active_branch .name == "main "
359359 )
360360
361361 repo .checkout ("dosac" )
@@ -367,22 +367,22 @@ def test_branch(create_test_table):
367367def test_branch_delete (create_test_table ):
368368 repo , _ = create_test_table
369369
370- _verify_branches (repo , ["master " ])
370+ _verify_branches (repo , ["main " ])
371371
372372 repo .checkout ("dosac" , checkout_branch = True )
373- repo .checkout ("master " )
374- _verify_branches (repo , ["master " , "dosac" ])
373+ repo .checkout ("main " )
374+ _verify_branches (repo , ["main " , "dosac" ])
375375
376376 repo .branch ("dosac" , delete = True )
377- _verify_branches (repo , ["master " ])
377+ _verify_branches (repo , ["main " ])
378378
379379
380380def test_branch_move (create_test_table ):
381381 repo , _ = create_test_table
382382
383- _verify_branches (repo , ["master " ])
383+ _verify_branches (repo , ["main " ])
384384
385- repo .branch ("master " , move = True , new_branch = "dosac" )
385+ repo .branch ("main " , move = True , new_branch = "dosac" )
386386 _verify_branches (repo , ["dosac" ])
387387
388388
@@ -404,7 +404,7 @@ def test_remote_list(create_test_table):
404404
405405def test_checkout_non_existent_branch (doltdb ):
406406 repo = Dolt (doltdb )
407- repo .checkout ("master " )
407+ repo .checkout ("main " )
408408
409409
410410def test_ls (create_test_table ):
@@ -626,7 +626,7 @@ def test_set_dolt_path_error(doltdb):
626626def test_no_checkout_error (init_empty_test_repo ):
627627 dolt = init_empty_test_repo
628628
629- dolt .checkout (branch = "master " , error = False )
629+ dolt .checkout (branch = "main " , error = False )
630630
631631
632632def test_reset (doltdb ):
0 commit comments