Skip to content

Commit 657e770

Browse files
tepheVasile Tofan
and
Vasile Tofan
authored
fix: change default from empty string to empty list (#235)
Co-authored-by: Vasile Tofan <vasile.tofan@complyadvantage.com>
1 parent 99fd965 commit 657e770

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pact/cli/verify.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
multiple=True) # Remove in major version 1.0.0
2222
@click.option(
2323
'pact_urls', '--pact-urls',
24-
default='',
24+
default=[],
2525
help='DEPRECATED: specify pacts as arguments instead.\n'
2626
'The URI(s) of the pact to verify.'
2727
' Can be an HTTP URI(s) or local file path(s).'
@@ -47,19 +47,19 @@
4747
' via the environment variable PACT_BROKER_BASE_URL.')
4848
@click.option(
4949
'consumer_version_tag', '--consumer-version-tag',
50-
default='',
50+
default=[],
5151
multiple=True,
5252
help='Retrieve the latest pacts with this consumer version tag. '
5353
'Used in conjunction with --provider. May be specified multiple times.')
5454
@click.option(
5555
'consumer_version_selector', '--consumer-version-selector',
56-
default='',
56+
default=[],
5757
multiple=True,
5858
help='Retrieve the latest pacts with this consumer version selector. '
5959
'Used in conjunction with --provider. May be specified multiple times.')
6060
@click.option(
6161
'provider_version_tag', '--provider-version-tag',
62-
default='',
62+
default=[],
6363
multiple=True,
6464
help='Tag to apply to the provider application version. '
6565
'May be specified multiple times.')

requirements_dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Click>=2.0.0,<=6.7
1+
Click>=2.0.0
22
coverage==5.4
33
Flask==1.0
44
configparser==3.5.0

0 commit comments

Comments
 (0)