Skip to content

Commit

Permalink
Update after review.
Browse files Browse the repository at this point in the history
  • Loading branch information
adiroiban authored Feb 13, 2022
1 parent f100f7a commit 90005e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/towncrier/test/test_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def test_first_release(self):
runner = CliRunner()

with runner.isolated_filesystem():
# Arrange
create_project()
# Before any release, the NEWS file might no exist.
self.assertNotIn('NEWS.rst', os.listdir('.'))
Expand Down Expand Up @@ -232,6 +233,7 @@ def test_release_branch(self):
runner = CliRunner()

with runner.isolated_filesystem():
# Arrange
create_project()

# Do a first release without any checks.
Expand All @@ -249,7 +251,7 @@ def test_release_branch(self):
write("foo/newsfragments/456.feature", "Foo the bar")
commit("A feature in the second release.")
call(["git", "checkout", "main"])
call(["git", "merge", "new-feature-branch", "-m", "Sync release in main branch."])
call(["git", "merge", "new-feature-branch", "-m", "Merge new-feature-branch."])

# We now have the new release branch.
call(["git", "checkout", "-b", "next-release"])
Expand Down

0 comments on commit 90005e1

Please sign in to comment.