Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Test and Publish
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
Expand Down
4 changes: 2 additions & 2 deletions consumer/test_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@


def test_get_user():
expected = {"id": 1, "name": "John Doe"}
expected = {"id": 1, "name": "John Doe", "title": "head"}

# Define the interaction
(
pact.upon_receiving("a request for user with ID 1")
.given("User with ID 2 exists")
.given("User with ID 1 exists")
.with_request("GET", "/users/1")
.will_respond_with(200, body=expected)
)
Expand Down