Skip to content

Commit 2c45ba7

Browse files
committed
chore(test): coverage ignore file creation and tested debug
1 parent c8b1463 commit 2c45ba7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

test/test_utils.py

+7
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ def test_gen_co_author():
5050
if not arg2 == '':
5151
raise AssertionError()
5252

53+
54+
def test_debug(capsys):
55+
utils.debug('msg', 666, show=True)
56+
captured = capsys.readouterr()
57+
if not captured.out == "DEBUG-> msg: 666\n":
58+
raise AssertionError()
59+
5360
# FIXME
5461
# def test_create_file(tmpdir):
5562
# test_file = tmpdir.mkdir('test').join('commiter.yml')

utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def gen_co_author(co_author):
3737
return "\nCo-authored-by: %s" % co_author
3838

3939

40-
def create_file(convention_name, dont_create=False):
40+
def create_file(convention_name, dont_create=False): # pragma: no cover
4141
if not dont_create:
4242
data = dict(
4343
convention=convention_name

0 commit comments

Comments
 (0)