Skip to content

Commit 748d790

Browse files
committed
test: add test to atom convention generation
1 parent 06e654a commit 748d790

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

commit_helper/conventions/atom.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# TEST:
21
def atom_convention(tag, msg):
32
tag = tag.lower()
43
msg = msg.capitalize()

test/test_conventions.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import yaml
2-
import commit_helper.conventions.karma_angular as angular
2+
import commit_helper.conventions.atom as atom
33
import commit_helper.conventions.tagged as tagged
4+
import commit_helper.conventions.karma_angular as angular
45
import commit_helper.conventions.symphony_cmf as symphony
5-
import commit_helper.conventions.no_convention as no_convention
66
import commit_helper.conventions.custom_convention as custom
7+
import commit_helper.conventions.no_convention as no_convention
78

89

910
def test_karma_angular_convention_with_context():
@@ -62,3 +63,9 @@ def test_no_convention_with_args():
6263
message = no_convention.just_message('Message')
6364
if not message == 'Message\n':
6465
raise AssertionError()
66+
67+
68+
def test_atom_convention():
69+
message = atom.atom_convention('CaNary', 'STUFF')
70+
if not message == ":canary: Stuff\n":
71+
raise AssertionError()

0 commit comments

Comments
 (0)