File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 14
14
<a href =" https://www.codacy.com/app/andre-filho/commit-helper?utm_source=github.com& ; utm_medium=referral& ; utm_content=andre-filho/commit-helper& ; utm_campaign=Badge_Grade " >
15
15
<img src="https://api.codacy.com/project/badge/Grade/595af9a088cf44e19ec2679a8c2617f6" alt="Codacy Badge">
16
16
</a >
17
+ <a href =" https://codeclimate.com/github/andre-filho/commit-helper/test_coverage " ><img src =" https://api.codeclimate.com/v1/badges/0ef7545d395120222d77/test_coverage " /></a >
18
+
17
19
</p >
18
20
19
21
## What does it do?
Original file line number Diff line number Diff line change 1
- import pytest
2
1
import conventions .karma_angular as angular
3
2
import conventions .changelog as changelog
4
3
import conventions .symphony_cmf as symphony
7
6
8
7
def test_angular_convention_with_context ():
9
8
message = angular .angular_convention ('TAG' , 'message' , 'context' )
10
- if not ('tag(context): message\n ' ):
9
+ if not (message == 'tag(context): message\n ' ):
11
10
raise AssertionError ()
12
11
13
12
14
13
def test_angular_convention_without_context ():
15
14
message = angular .angular_convention ('tag' , 'message' , '' )
16
- if not ('tag: message\n ' ):
15
+ if not (message == 'tag: message\n ' ):
17
16
raise AssertionError ()
18
17
19
18
20
19
def test_changelog_convention ():
21
20
message = changelog .changelog_convention ('tag' , 'message' )
22
- if not ('TAG: message\n ' ):
21
+ if not (message == 'TAG: message\n ' ):
23
22
raise AssertionError ()
24
23
25
24
26
25
def test_symphony_convention ():
27
26
message = symphony .symphony_convention ('tag' , 'message' )
28
- if not ('[Tag] message\n ' ):
27
+ if not (message == '[Tag] message\n ' ):
29
28
raise AssertionError ()
30
29
31
30
You can’t perform that action at this time.
0 commit comments