Skip to content

Add Http Post and Delete examples#783

Merged
JP-Ellis merged 2 commits intopact-foundation:masterfrom
amit828as:updated-v3-examples-refactored
Sep 25, 2024
Merged

Add Http Post and Delete examples#783
JP-Ellis merged 2 commits intopact-foundation:masterfrom
amit828as:updated-v3-examples-refactored

Conversation

@amit828as
Copy link
Copy Markdown
Contributor

📝 Summary

  1. Added the http post and delete methods
  2. updated the methods in v2 examples to verify the teardown
  3. added new endpoints in flask and fastapi

🚨 Breaking Changes

🔥 Motivation

Provide more realistic examples for pact-python

🔨 Test Plan

Examples are inherently tested

🔗 Related issues/PRs

#757

Extend the existing examples to showcase both HTTP POST and DELETE
requests, and how they are handled in Pact. Specifically showcasing how
the verifying can ensure that any side-effects have taken place.

Co-authored-by: Amit Singh <amit.828.as@gmail.com>
Signed-off-by: JP-Ellis <josh@jpellis.me>
@JP-Ellis JP-Ellis force-pushed the updated-v3-examples-refactored branch from 2d9b9a7 to 75edcbb Compare September 12, 2024 07:51
Signed-off-by: JP-Ellis <josh@jpellis.me>
@JP-Ellis JP-Ellis force-pushed the updated-v3-examples-refactored branch from fc65cdd to 7c1f341 Compare September 25, 2024 01:52
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@07c5a14). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             master   #783   +/-   ##
=======================================
  Coverage          ?    78%           
=======================================
  Files             ?     23           
  Lines             ?   2673           
  Branches          ?      0           
=======================================
  Hits              ?   2111           
  Misses            ?    562           
  Partials          ?      0           
Flag Coverage Δ
examples 58% <ø> (?)
tests 78% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JP-Ellis JP-Ellis merged commit 0bbae63 into pact-foundation:master Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants