@@ -401,24 +401,6 @@ def test_get_default_compare_branch_missing(self):
401401 self .assertEqual (1 , result .exit_code )
402402 self .assertEqual ("Could not detect default branch. Aborting.\n " , result .output )
403403
404- def test_get_default_compare_branch_main (self ):
405- """
406- If there's a remote branch origin/main, prefer it over everything else.
407- """
408- branch = check ._get_default_compare_branch (["origin/master" , "origin/main" ])
409-
410- self .assertEqual ("origin/main" , branch )
411-
412- def test_get_default_compare_branch_fallback (self ):
413- """
414- If there's origin/master and no main, use it and warn about it.
415- """
416- with warnings .catch_warnings (record = True ) as w :
417- branch = check ._get_default_compare_branch (["origin/master" , "origin/foo" ])
418-
419- self .assertEqual ("origin/master" , branch )
420- self .assertTrue (w [0 ].message .args [0 ].startswith ('Using "origin/master' ))
421-
422404 @with_isolated_runner
423405 def test_in_different_dir_with_nondefault_newsfragments_directory (self , runner ):
424406 """
@@ -429,8 +411,7 @@ def test_in_different_dir_with_nondefault_newsfragments_directory(self, runner):
429411 Path ("pyproject.toml" ).write_text (
430412 # Important to customize `config.directory` because the default
431413 # already supports this scenario.
432- "[tool.towncrier]\n "
433- + 'directory = "changelog.d"\n '
414+ "[tool.towncrier]\n " + 'directory = "changelog.d"\n '
434415 )
435416 subproject1 = Path ("foo" )
436417 (subproject1 / "foo" ).mkdir (parents = True )
0 commit comments