MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / case

Function case

tests/test_changelog_format_restructuredtext.py:26–47  ·  view source on GitHub ↗
(
    id: str,
    content: str,
    latest_version: str | None = None,
    latest_version_position: int | None = None,
    latest_version_tag: str | None = None,
    unreleased_start: int | None = None,
    unreleased_end: int | None = None,
)

Source from the content-addressed store, hash-verified

24
25
26def case(
27 id: str,
28 content: str,
29 latest_version: str | None = None,
30 latest_version_position: int | None = None,
31 latest_version_tag: str | None = None,
32 unreleased_start: int | None = None,
33 unreleased_end: int | None = None,
34):
35 CASES.append(
36 pytest.param(
37 dedent(content).strip(),
38 Metadata(
39 latest_version=latest_version,
40 latest_version_tag=latest_version_tag,
41 latest_version_position=latest_version_position,
42 unreleased_start=unreleased_start,
43 unreleased_end=unreleased_end,
44 ),
45 id=id,
46 )
47 )
48
49
50case(

Calls 1

MetadataClass · 0.90

Tested by

no test coverage detected