Skip to content

Commit dd8827a

Browse files
committed
chore(example): migrate fastapi provider example
This migrates the Pact FastAPI provider from the old standalone examples, and merges it with the new combined examples. The consumer tests are executed first which publishes the contracts with the broker. The provider test is then executed against the broker to verify compliance with the published contracts. This does, at this stage, create an unusual interdependence between tests which typically should be avoided. I plan to fix this at a later stage. Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent 4c47843 commit dd8827a

File tree

12 files changed

+195
-241
lines changed

12 files changed

+195
-241
lines changed

examples/fastapi_provider/.flake8

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/fastapi_provider/requirements.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

examples/fastapi_provider/run_pytest.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

examples/fastapi_provider/src/provider.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/fastapi_provider/tests/__init__.py

Whitespace-only changes.

examples/fastapi_provider/tests/conftest.py

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/fastapi_provider/tests/pact_provider.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

examples/fastapi_provider/tests/provider/__init__.py

Whitespace-only changes.

examples/fastapi_provider/tests/provider/test_provider.py

Lines changed: 0 additions & 87 deletions
This file was deleted.

examples/fastapi_provider/verify_pact.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)