Skip to content

Commit d3aac80

Browse files
committed
fix: issues from code analyzers
1 parent 7ebedc3 commit d3aac80

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
<a href="https://www.codacy.com/app/andre-filho/commit-helper?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=andre-filho/commit-helper&amp;utm_campaign=Badge_Grade">
1515
<img src="https://api.codacy.com/project/badge/Grade/595af9a088cf44e19ec2679a8c2617f6" alt="Codacy Badge">
1616
</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+
1719
</p>
1820

1921
## What does it do?

test/test_conventions.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pytest
21
import conventions.karma_angular as angular
32
import conventions.changelog as changelog
43
import conventions.symphony_cmf as symphony
@@ -7,25 +6,25 @@
76

87
def test_angular_convention_with_context():
98
message = angular.angular_convention('TAG', 'message', 'context')
10-
if not ('tag(context): message\n'):
9+
if not (message == 'tag(context): message\n'):
1110
raise AssertionError()
1211

1312

1413
def test_angular_convention_without_context():
1514
message = angular.angular_convention('tag', 'message', '')
16-
if not ('tag: message\n'):
15+
if not (message == 'tag: message\n'):
1716
raise AssertionError()
1817

1918

2019
def test_changelog_convention():
2120
message = changelog.changelog_convention('tag', 'message')
22-
if not ('TAG: message\n'):
21+
if not (message == 'TAG: message\n'):
2322
raise AssertionError()
2423

2524

2625
def test_symphony_convention():
2726
message = symphony.symphony_convention('tag', 'message')
28-
if not ('[Tag] message\n'):
27+
if not (message == '[Tag] message\n'):
2928
raise AssertionError()
3029

3130

0 commit comments

Comments
 (0)