We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9fc41d commit 1932945Copy full SHA for 1932945
test/test_utils.py
@@ -36,6 +36,14 @@ def mock_input(s):
36
if not c == 'context':
37
raise AssertionError()
38
39
+def test_change_if_none():
40
+ string = 'asopdfha'
41
+ string2 = None
42
+ string = utils.change_if_none(string)
43
+ string2 = utils.change_if_none(string2)
44
+ if not (string == 'asopdfha' and string2 == ''):
45
+ raise AssertionError()
46
+
47
# FIXME
48
# def test_create_file(tmpdir):
49
# test_file = tmpdir.mkdir('test').join('commiter.yml')
utils.py
@@ -56,6 +56,4 @@ def parser_cli():
56
def change_if_none(string):
57
if string is None:
58
return ''
59
- else:
60
- return string
61
-
+ return string
0 commit comments