Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
drish committed Feb 17, 2024
1 parent c110418 commit 6661eca
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions tests/domains_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,8 @@ def test_domains_update(self):

def mock_json():
return {
"data": {
"object": "domain",
"id": "479e3145-dd38-476b-932c-529ceb705947",
},
"error": None,
"object": "domain",
"id": "479e3145-dd38-476b-932c-529ceb705947",
}

m.json = mock_json
Expand All @@ -206,7 +203,7 @@ def mock_json():
"click_tracking": True,
}
contact = resend.Domains.update(params)
assert contact["data"]["id"] == "479e3145-dd38-476b-932c-529ceb705947"
assert contact["data"]["object"] == "domain"
assert contact["id"] == "479e3145-dd38-476b-932c-529ceb705947"
assert contact["object"] == "domain"

patcher.stop()

0 comments on commit 6661eca

Please sign in to comment.