File tree 4 files changed +17
-3
lines changed
4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change
1
+ [run]
2
+ branch = True
3
+ omit = venv/, test/
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ package-lock.json
6
6
htmlcov /
7
7
.coverage
8
8
.pytest_cache /
9
+ venv /
Original file line number Diff line number Diff line change @@ -34,10 +34,13 @@ def mock_input(s):
34
34
35
35
def test_sanitize_as_empty_string ():
36
36
string = 'asopdfha'
37
- string2 = None
38
37
string = utils .sanitize_as_empty_string (string )
38
+ if not string == 'asopdfha' :
39
+ raise AssertionError ()
40
+
41
+ string2 = None
39
42
string2 = utils .sanitize_as_empty_string (string2 )
40
- if not ( string == 'asopdfha' and string2 == '' ) :
43
+ if not string2 == '' :
41
44
raise AssertionError ()
42
45
43
46
@@ -50,6 +53,13 @@ def test_gen_co_author():
50
53
if not arg2 == '' :
51
54
raise AssertionError ()
52
55
56
+
57
+ def test_debug (capsys ):
58
+ utils .debug ('msg' , 666 , show = True )
59
+ captured = capsys .readouterr ()
60
+ if not captured .out == "DEBUG-> msg: 666\n " :
61
+ raise AssertionError ()
62
+
53
63
# FIXME
54
64
# def test_create_file(tmpdir):
55
65
# test_file = tmpdir.mkdir('test').join('commiter.yml')
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ def gen_co_author(co_author):
37
37
return "\n Co-authored-by: %s" % co_author
38
38
39
39
40
- def create_file (convention_name , dont_create = False ):
40
+ def create_file (convention_name , dont_create = False ): # pragma: no cover
41
41
if not dont_create :
42
42
data = dict (
43
43
convention = convention_name
You can’t perform that action at this time.
0 commit comments