Verify Wrapper¶
Wrapper to verify previously created pacts.
Attributes¶
Classes¶
PactException(*args, **kwargs)
¶
VerifyWrapper()
¶
Bases: object
A Pact Verifier Wrapper.
Source code in src/pact/verify_wrapper.py
Functions¶
call_verify(*pacts, provider_base_url, provider, enable_pending=False, include_wip_pacts_since=None, **kwargs)
¶
Call verify method.
Source code in src/pact/verify_wrapper.py
publish_results(provider_app_version, command)
¶
Publish results to broker.
Source code in src/pact/verify_wrapper.py
Functions¶
capture_logs(process, verbose)
¶
Capture logs from ruby process.
Source code in src/pact/verify_wrapper.py
expand_directories(paths)
¶
Iterate over paths and expand any that are directories into file paths.
:param paths: A list of file paths to expand. :type paths: list :return: A list of file paths with any directory paths replaced with the JSON files in those directories. :rtype: list
Source code in src/pact/verify_wrapper.py
path_exists(path)
¶
Determine if a particular path exists.
Can be provided a URL or local path. URLs always result in a True. Local paths are True only if a file exists at that location.
:param path: The path to check. :type path: str :return: True if the path exists and is a file, otherwise False. :rtype: bool
Source code in src/pact/verify_wrapper.py
rerun_command()
¶
Create a rerun command template for failed interactions.
:rtype: str
Source code in src/pact/verify_wrapper.py
sanitize_logs(process, verbose)
¶
Print the logs from a process while removing Ruby stack traces.
:param process: The Ruby pact verifier process. :type process: subprocess.Popen :param verbose: Flag to toggle more verbose logging. :type verbose: bool :rtype: None