Update click version

This commit is contained in:
sonny 2021-05-12 20:20:45 +02:00
parent 8157eb1b3a
commit a924c5400b
3 changed files with 35 additions and 26 deletions

View file

@ -1,10 +1,9 @@
import json
from unittest import TestCase, skipIf
from unittest import TestCase
from unittest.mock import call, patch
from click.testing import CliRunner
from pkg_resources import get_distribution
from requests import HTTPError
from transip_client.cli import DEFAULT_API_URL, run
@ -282,11 +281,6 @@ class RunTestCase(TestCase):
headers={"Authorization": "Bearer TOKEN"},
)
# see https://click.palletsprojects.com/en/master/changelog/#version-8-0
@skipIf(
get_distribution("click").version < "8",
"Multiple arguments through env variables not supported",
)
def test_multi_arg_env_var(self):
self.mocked_dns.return_value = b"111.420\n"
self.mocked_get.return_value.json.side_effect = [