Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: commitizen-tools/commitizen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: commitizen-tools/commitizen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix-semver-not-fully-covered
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Apr 24, 2024

  1. Copy the full SHA
    b45a1c3 View commit details
Showing with 4 additions and 0 deletions.
  1. +1 −0 tests/test_version_scheme_semver.py
  2. +3 −0 tests/test_version_scheme_semver2.py
1 change: 1 addition & 0 deletions tests/test_version_scheme_semver.py
Original file line number Diff line number Diff line change
@@ -64,6 +64,7 @@
(("1.0.0alpha1", None, "alpha", 0, None), "1.0.0-a2"),
(("1", None, "rc", 0, None), "1.0.0-rc0"),
(("1.0.0rc1+e20d7b57f3eb", "PATCH", None, 0, None), "1.0.0"),
(("1.0.0-reallyweird", "PATCH", "reallyweird", 0, None), "1.0.0"),
]

# test driven development
3 changes: 3 additions & 0 deletions tests/test_version_scheme_semver2.py
Original file line number Diff line number Diff line change
@@ -5,6 +5,8 @@

from commitizen.version_schemes import SemVer2, VersionProtocol

# current_version, increment, prerelease, prerelease_offset, devrelease

simple_flow = [
(("0.1.0", "PATCH", None, 0, None), "0.1.1"),
(("0.1.0", "PATCH", None, 0, 1), "0.1.1-dev.1"),
@@ -64,6 +66,7 @@
(("1.0.0-alpha.1", None, "alpha", 0, None), "1.0.0-alpha.2"),
(("1", None, "rc", 0, None), "1.0.0-rc.0"),
(("1.0.0-rc.1+e20d7b57f3eb", "PATCH", None, 0, None), "1.0.0"),
(("1.0.0-reallyweird", "PATCH", "reallyweird", 0, None), "1.0.0"),
]

# test driven development