Skip to content

Commit b491bbc

Browse files
committed
Fix tests for latest Click (7.1.1)
1 parent eb3eab8 commit b491bbc

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
bumpversion
22
typing; python_version<"3.5"
3-
click==7.0
3+
click
44
flake8>=2.2.3
55
ipython
66
mock

tests/test_cli.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_list_non_existent_file(cli):
2020
result = cli.invoke(dotenv_cli, ['--file', 'nx_file', 'list'])
2121

2222
assert result.exit_code == 2, result.output
23-
assert 'Invalid value for "-f"' in result.output
23+
assert "Invalid value for '-f'" in result.output
2424

2525

2626
def test_list_no_file(cli):
@@ -48,7 +48,7 @@ def test_get_no_file(cli):
4848
result = cli.invoke(dotenv_cli, ['--file', 'nx_file', 'get', 'a'])
4949

5050
assert result.exit_code == 2
51-
assert 'Invalid value for "-f"' in result.output
51+
assert "Invalid value for '-f'" in result.output
5252

5353

5454
def test_unset_existing_value(cli, dotenv_file):
@@ -97,7 +97,7 @@ def test_set_no_file(cli):
9797
result = cli.invoke(dotenv_cli, ["--file", "nx_file", "set"])
9898

9999
assert result.exit_code == 2
100-
assert 'Invalid value for "-f"' in result.output
100+
assert "Invalid value for '-f'" in result.output
101101

102102

103103
def test_get_default_path(tmp_path):
@@ -145,14 +145,14 @@ def test_run_without_cmd(cli):
145145
result = cli.invoke(dotenv_cli, ['run'])
146146

147147
assert result.exit_code == 2
148-
assert 'Invalid value for "-f"' in result.output
148+
assert "Invalid value for '-f'" in result.output
149149

150150

151151
def test_run_with_invalid_cmd(cli):
152152
result = cli.invoke(dotenv_cli, ['run', 'i_do_not_exist'])
153153

154154
assert result.exit_code == 2
155-
assert 'Invalid value for "-f"' in result.output
155+
assert "Invalid value for '-f'" in result.output
156156

157157

158158
def test_run_with_version(cli):

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ deps =
77
pytest
88
coverage
99
sh
10-
click==7.0
10+
click
1111
py{27,py}: ipython<6.0.0
1212
py34{,-no-typing}: ipython<7.0.0
1313
py{35,36,37,38,py3}: ipython

0 commit comments

Comments
 (0)