Skip to content

Commit 94e597a

Browse files
committed
fix(publish): fixing the fix. Pact Python api uses only publish_version and ensures it follows that
1 parent e00f320 commit 94e597a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pact/verifier.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ def extract_params(self, **kwargs):
9797
"""Extract params."""
9898
log_dir = kwargs.get('log_dir', None)
9999
log_level = kwargs.get('log_level', 'INFO')
100-
provider_app_version = kwargs.get('provider_app_version', None)
101100
headers = kwargs.get('headers', [])
102101
timeout = kwargs.get('timeout', None)
103102
consumer_tags = kwargs.get('consumer_tags', [])

tests/test_verifier.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def test_verifier_and_pubish_with_broker(self, mock_wrapper):
176176

177177
mock_wrapper.return_value = (True, 'some value')
178178

179-
self.default_opts['publish_verification_results'] = True
179+
self.default_opts['publish_version'] = '1.0.0'
180180
output, _ = self.verifier.verify_with_broker(**self.default_opts)
181181

182182
self.assertTrue(output)
@@ -191,7 +191,8 @@ def test_verifier_and_pubish_with_broker(self, mock_wrapper):
191191
verbose=False,
192192
enable_pending=False,
193193
include_wip_pacts_since=None,
194-
publish_verification_results=True)
194+
provider_app_version='1.0.0',
195+
)
195196

196197
@patch("pact.verify_wrapper.VerifyWrapper.call_verify")
197198
def test_verifier_with_broker_passes_consumer_selctors(self, mock_wrapper):

0 commit comments

Comments
 (0)