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 cbc304c commit f6f3b06Copy full SHA for f6f3b06
tests/test_patch.py
@@ -1,7 +1,9 @@
1
import unittest
2
3
+import click
4
from click.testing import CliRunner as CLIRunner
5
import mock
6
+from packaging import version
7
8
from git_pw import patch
9
@@ -260,7 +262,10 @@ def test_update_with_invalid_state(
260
262
'123', '--state', 'bar'])
261
263
264
assert result.exit_code == 2, result
- assert 'Invalid value for "--state"' in result.output, result
265
+ if version.parse(click.__version__) >= version.Version('7.1'):
266
+ assert "Invalid value for '--state'" in result.output, result
267
+ else:
268
+ assert 'Invalid value for "--state"' in result.output, result
269
270
@mock.patch('git_pw.api.index')
271
def test_update_with_delegate(
0 commit comments