Skip to content

Commit

Permalink
feat: sns
Browse files Browse the repository at this point in the history
  • Loading branch information
totalimmersion committed Oct 23, 2023
1 parent 803c147 commit 03e0be4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions stream_chat/tests/async_chat/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,14 +619,14 @@ async def test_check_push(
async def test_check_sqs(self, client: StreamChatAsync):
response = await client.check_sqs("key", "secret", "https://foo.com/bar")
assert response["status"] == "error"
assert "publishing the message failed." in response["error"]
assert "invalid SQS url" in response["error"]

async def test_check_sns(self, client: StreamChatAsync):
response = await client.check_sns(
"key", "secret", "arn:aws:sns:us-east-1:123456789012:sns-topic"
)
assert response["status"] == "error"
assert "invalid SQS url" in response["error"]
assert "publishing the message failed." in response["error"]

async def test_guest_user(self, client: StreamChatAsync, random_user: Dict):
try:
Expand Down
2 changes: 1 addition & 1 deletion stream_chat/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def test_check_sns(self, client: StreamChat):
"key", "secret", "arn:aws:sns:us-east-1:123456789012:sns-topic"
)
assert response["status"] == "error"
assert "invalid SQS url" in response["error"]
assert "publishing the message failed." in response["error"]

def test_guest_user(self, client: StreamChat, random_user: Dict):
try:
Expand Down

0 comments on commit 03e0be4

Please sign in to comment.