Skip to content

Commit a706bcf

Browse files
cdevienneadiroiban
andcommitted
Apply suggestions from code review
Co-authored-by: Adi Roiban <[email protected]>
1 parent 7a9a6a5 commit a706bcf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/towncrier/test/test_novcs.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
class TestNOVCS(TestCase):
77
def test_get_default_compare_branch(self):
8+
"""
9+
Witout a version control system, there is no default branch.
10+
"""
811
self.assertEqual(None, _novcs.get_default_compare_branch([]))
912

1013
def test_empty_remove(self):
@@ -14,9 +17,15 @@ def test_empty_remove(self):
1417
_novcs.remove_files([])
1518

1619
def test_get_remote_branches(self):
20+
"""
21+
There are no remote branches, when we don't have a VCS.
22+
"""
1723
self.assertEqual([], _novcs.get_remote_branches("."))
1824

1925
def test_list_changed_files_compared_to_branch(self):
26+
"""
27+
No changed files are detected without a VCS.
28+
"""
2029
self.assertEqual(
2130
[], _novcs.list_changed_files_compared_to_branch(".", "main", False)
2231
)

0 commit comments

Comments
 (0)