Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions commitizen/cz/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,18 @@ def style(self) -> Style:
]
) # type: ignore[return-value]

@abstractmethod
def example(self) -> str:
"""Example of the commit message."""
raise NotImplementedError("Not Implemented yet")

@abstractmethod
def schema(self) -> str:
"""Schema definition of the commit message."""
raise NotImplementedError("Not Implemented yet")

@abstractmethod
def schema_pattern(self) -> str:
"""Regex matching the schema used for message validation."""
raise NotImplementedError("Not Implemented yet")

@abstractmethod
def info(self) -> str:
"""Information about the standardized commit message."""
raise NotImplementedError("Not Implemented yet")
24 changes: 24 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,18 @@ def message(self, answers: Mapping) -> str:
subject = answers.get("subject", "default message").trim()
return f"{prefix}: {subject}"

def example(self) -> str:
return ""

def schema(self) -> str:
return ""

def schema_pattern(self) -> str:
return ""

def info(self) -> str:
return ""


@pytest.fixture()
def use_cz_semver(mocker):
Expand All @@ -229,6 +241,18 @@ def questions(self) -> list[CzQuestion]:
def message(self, answers: Mapping) -> str:
return ""

def example(self) -> str:
return ""

def schema(self) -> str:
return ""

def schema_pattern(self) -> str:
return ""

def info(self) -> str:
return ""


@pytest.fixture
def mock_plugin(mocker: MockerFixture, config: BaseConfig) -> BaseCommitizen:
Expand Down
46 changes: 0 additions & 46 deletions tests/test_cz_base.py

This file was deleted.

Loading