Skip to content

Commit

Permalink
Removed unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
Buhle79 committed Jan 23, 2024
1 parent 4816f83 commit 3413292
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions home/tests/test_whatsapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,21 +174,3 @@ def test_create_whatsapp_template_with_image(self, tmp_path, settings):
mock_create_template_data, indent=4
)

@responses.activate
def test_create_whatsapp_template_return_error(self):
data = {
"category": "UTILITY",
"name": "test-template",
"language": "en_US",
"components": [{"type": "BODY", "text": "Test Body"}],
}
url = "http://whatsapp/graph/v14.0/27121231234/message_templates"
responses.add(responses.POST, url, json={}, status=404)

with self.assertRaises(Exception):
create_whatsapp_template("test-template", "Test Body", "UTILITY")

request = responses.calls[0].request

# assert request.headers["Authorization"] == "Bearer fake-access-token"
# assert request.body == json.dumps(data, indent=4)

0 comments on commit 3413292

Please sign in to comment.