Skip to content

Commit 0265ad5

Browse files
committed
test(bump_rule): fix test again
1 parent 7b3b9c6 commit 0265ad5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

commitizen/bump_rule.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ class SemVerIncrement(Enum):
1717
def __str__(self) -> str:
1818
return self.name
1919

20-
def __repr__(self) -> str:
21-
return f"'{self.name}'"
22-
2320
@classmethod
2421
def safe_cast(cls, value: Any) -> SemVerIncrement | None:
2522
if value is None:

tests/commands/test_bump_command.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
import commitizen.commands.bump as bump
1515
from commitizen import cli, cmd, git, hooks
16+
from commitizen.bump_rule import SemVerIncrement
1617
from commitizen.changelog_formats import ChangelogFormat
1718
from commitizen.cz.base import BaseCommitizen
1819
from commitizen.exceptions import (
@@ -1000,7 +1001,7 @@ def test_bump_with_pre_bump_hooks(
10001001
new_version="0.2.0",
10011002
new_tag_version="0.2.0",
10021003
message="bump: version 0.1.0 → 0.2.0",
1003-
increment="MINOR",
1004+
increment=SemVerIncrement.MINOR,
10041005
changelog_file_name=None,
10051006
),
10061007
call(
@@ -1012,7 +1013,7 @@ def test_bump_with_pre_bump_hooks(
10121013
current_version="0.2.0",
10131014
current_tag_version="0.2.0",
10141015
message="bump: version 0.1.0 → 0.2.0",
1015-
increment="MINOR",
1016+
increment=SemVerIncrement.MINOR,
10161017
changelog_file_name=None,
10171018
),
10181019
]

0 commit comments

Comments
 (0)