File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
commit_helper/conventions Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1- # TEST:
21def atom_convention (tag , msg ):
32 tag = tag .lower ()
43 msg = msg .capitalize ()
Original file line number Diff line number Diff line change 11import yaml
2- import commit_helper .conventions .karma_angular as angular
2+ import commit_helper .conventions .atom as atom
33import commit_helper .conventions .tagged as tagged
4+ import commit_helper .conventions .karma_angular as angular
45import commit_helper .conventions .symphony_cmf as symphony
5- import commit_helper .conventions .no_convention as no_convention
66import commit_helper .conventions .custom_convention as custom
7+ import commit_helper .conventions .no_convention as no_convention
78
89
910def 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 ()
You can’t perform that action at this time.
0 commit comments