forked from twisted/towncrier
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fragment parsing with stray numbers and dots
fixes twisted#562
- Loading branch information
Showing
6 changed files
with
60 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
.vscode | ||
Justfile | ||
*egg-info/ | ||
towncrier.test.test_*/ | ||
_trial_temp*/ | ||
apidocs/ | ||
dist/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Parsing news fragments is now more robust in the face of non numeric fragment names containing numbers and dots. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Previously, fragment filenames like ``fix-1.2.3.feature`` identified as closing issue ``3``. Now the identifier of newsfragment is presented as ``fix-1.2.3``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ def _test_command(self, command): | |
|
||
result = runner.invoke(command, ["--draft", "--date", "01-01-2001"]) | ||
|
||
self.assertEqual(0, result.exit_code) | ||
self.assertEqual(0, result.exit_code, result.output) | ||
self.assertEqual( | ||
result.output, | ||
dedent( | ||
|
@@ -78,7 +78,7 @@ def _test_command(self, command): | |
-------- | ||
- Baz levitation (baz) | ||
- Baz fix levitation (#2) | ||
- Baz fix levitation (fix-1.2) | ||
- Adds levitation (#123) | ||
- Extends levitation (#124) | ||
- An orphaned feature ending with a dotted number | ||
|
@@ -417,6 +417,7 @@ def test_draft_no_date(self): | |
call(["git", "init"]) | ||
call(["git", "config", "user.name", "user"]) | ||
call(["git", "config", "user.email", "[email protected]"]) | ||
call(["git", "config", "commit.gpgSign", "false"]) | ||
call(["git", "add", "."]) | ||
call(["git", "commit", "-m", "Initial Commit"]) | ||
|
||
|
@@ -441,6 +442,7 @@ def test_no_confirmation(self): | |
call(["git", "init"]) | ||
call(["git", "config", "user.name", "user"]) | ||
call(["git", "config", "user.email", "[email protected]"]) | ||
call(["git", "config", "commit.gpgSign", "false"]) | ||
call(["git", "add", "."]) | ||
call(["git", "commit", "-m", "Initial Commit"]) | ||
|
||
|
@@ -470,6 +472,7 @@ def test_keep_fragments(self, runner): | |
call(["git", "init"]) | ||
call(["git", "config", "user.name", "user"]) | ||
call(["git", "config", "user.email", "[email protected]"]) | ||
call(["git", "config", "commit.gpgSign", "false"]) | ||
call(["git", "add", "."]) | ||
call(["git", "commit", "-m", "Initial Commit"]) | ||
|
||
|
@@ -503,6 +506,7 @@ def test_yes_keep_error(self, runner): | |
call(["git", "init"]) | ||
call(["git", "config", "user.name", "user"]) | ||
call(["git", "config", "user.email", "[email protected]"]) | ||
call(["git", "config", "commit.gpgSign", "false"]) | ||
call(["git", "add", "."]) | ||
call(["git", "commit", "-m", "Initial Commit"]) | ||
|
||
|
@@ -531,6 +535,7 @@ def test_confirmation_says_no(self): | |
call(["git", "init"]) | ||
call(["git", "config", "user.name", "user"]) | ||
call(["git", "config", "user.email", "[email protected]"]) | ||
call(["git", "config", "commit.gpgSign", "false"]) | ||
call(["git", "add", "."]) | ||
call(["git", "commit", "-m", "Initial Commit"]) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters