Exemple #1
0
def test_process_commit(commit_message, expected_message, config):
    conventional_commits = ConventionalCommitsCz(config)
    message = conventional_commits.process_commit(commit_message)
    assert message == expected_message
Exemple #2
0
def test_process_commit(config):
    conventional_commits = ConventionalCommitsCz(config)
    message = conventional_commits.process_commit(
        "test(test_scope): this is test msg")
    assert message == "this is test msg"