diff --git a/src/towncrier/test/test_builder.py b/src/towncrier/test/test_builder.py index 9aaded60..c53152f9 100644 --- a/src/towncrier/test/test_builder.py +++ b/src/towncrier/test/test_builder.py @@ -41,6 +41,14 @@ def test_counter_with_extension(self): ("123", "feature", 1), ) + def test_get_underline_size_ascii(self): + """Determine underline size for normal ASCII strings.""" + assert get_underline_size("bugfixes") == 8 + + def test_get_underline_size_wide_character(self): + """Determine underline size for strings with wide characters.""" + assert get_underline_size("🐛 Bugfixes") == 11 + def test_ignores_extension(self): """File extensions are ignored.""" self.assertEqual( @@ -208,13 +216,3 @@ def test_ordering(self): - Added Fish """ ) - - -class TestUtilityFunctions(TestCase): - def test_get_underline_size_ascii(self): - """Determine underline size for normal ASCII strings.""" - assert get_underline_size("bugfixes") == 8 - - def test_get_underline_size_wide_character(self): - """Determine underline size for strings with wide characters.""" - assert get_underline_size("🐛 Bugfixes") == 11