Adding upstream version 4.6.0+dfsg.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f3ad83a1a5
commit
167a3f8553
275 changed files with 30423 additions and 0 deletions
39
tests/test_cz_jira.py
Normal file
39
tests/test_cz_jira.py
Normal file
|
@ -0,0 +1,39 @@
|
|||
from commitizen.cz.jira import JiraSmartCz
|
||||
|
||||
|
||||
def test_questions(config):
|
||||
cz = JiraSmartCz(config)
|
||||
questions = cz.questions()
|
||||
assert isinstance(questions, list)
|
||||
assert isinstance(questions[0], dict)
|
||||
|
||||
|
||||
def test_answer(config):
|
||||
cz = JiraSmartCz(config)
|
||||
answers = {
|
||||
"message": "new test",
|
||||
"issues": "JRA-34",
|
||||
"workflow": "",
|
||||
"time": "",
|
||||
"comment": "",
|
||||
}
|
||||
message = cz.message(answers)
|
||||
assert message == "new test JRA-34"
|
||||
|
||||
|
||||
def test_example(config):
|
||||
cz = JiraSmartCz(config)
|
||||
assert "JRA-34 #comment corrected indent issue\n" in cz.example()
|
||||
|
||||
|
||||
def test_schema(config):
|
||||
cz = JiraSmartCz(config)
|
||||
assert "<ignored text>" in cz.schema()
|
||||
|
||||
|
||||
def test_info(config):
|
||||
cz = JiraSmartCz(config)
|
||||
assert (
|
||||
"Smart Commits allow repository committers to perform "
|
||||
"actions such as transitioning JIRA Software"
|
||||
) in cz.info()
|
Loading…
Add table
Add a link
Reference in a new issue