forked from pool/python-click-default-group
click 8 (gh#click-contrib/click-default-group#18). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-default-group?expand=0&rev=3
24 lines
715 B
Diff
24 lines
715 B
Diff
From 9415c77d05cf7d16876e7d70a49a41a6189983b4 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= <dev@schuetz-co.de>
|
|
Date: Sun, 20 Jun 2021 16:11:42 +0200
|
|
Subject: [PATCH] make tests compatible with click 8
|
|
|
|
It now outputs "No such option".
|
|
---
|
|
test.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/test.py b/test.py
|
|
index c464620..f90b80d 100644
|
|
--- a/test.py
|
|
+++ b/test.py
|
|
@@ -30,7 +30,7 @@ def bar():
|
|
|
|
def test_default_command_with_arguments():
|
|
assert r.invoke(cli, ['--foo', 'foooo']).output == 'foooo\n'
|
|
- assert 'no such option' in r.invoke(cli, ['-x']).output
|
|
+ assert 'no such option' in r.invoke(cli, ['-x']).output.lower()
|
|
|
|
|
|
def test_group_arguments():
|