-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: got basic provider verifier working
- Loading branch information
Ronald Holshausen
committed
Feb 21, 2021
1 parent
d533bb7
commit 8d10d5a
Showing
10 changed files
with
417 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ json2xml==3.3.2 | |
pytest==5.4.2 | ||
pact-python==2.0.0b0 | ||
requests==2.23.0 | ||
pytest-flask==1.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import pytest | ||
from ..src.todo_provider import create_app | ||
from pact import VerifierV3 | ||
from flask import url_for | ||
|
||
|
||
@pytest.fixture(scope='session') | ||
def app(): | ||
return create_app() | ||
|
||
|
||
@pytest.mark.usefixtures('live_server') | ||
def test_pact_verification(): | ||
verifier = VerifierV3(provider='TodoServiceV3', | ||
provider_base_url=url_for('index', _external=True)) | ||
assert verifier.verify_pacts( | ||
sources=['./pacts/TodoApp-TodoServiceV3.json'] | ||
) | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.