diff --git a/test/test_utils.py b/test/test_utils.py index 89a4ae3..d830536 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -42,7 +42,7 @@ def test_sanitize_as_empty_string(): def test_gen_co_author(): arg = utils.gen_co_author('kiryto ') - if not arg == "Co-authored-by: kiryto ": + if not arg == "\nCo-authored-by: kiryto ": raise AssertionError() arg2 = utils.gen_co_author('') diff --git a/utils.py b/utils.py index 3eeaacc..2b8e277 100644 --- a/utils.py +++ b/utils.py @@ -34,7 +34,7 @@ def get_context(): def gen_co_author(co_author): if co_author is '': return '' - return "Co-authored-by: %s" % co_author + return "\nCo-authored-by: %s" % co_author def create_file(convention_name, dont_create=False):