Skip to content

Commit 758a7fd

Browse files
authored
Update test_sessions.py
fix the test
1 parent 248b3e8 commit 758a7fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_sessions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22
from unittest.mock import Mock, patch, AsyncMock
3-
from wasenderapi import create_async_wasender
3+
from wasenderapi import WasenderAsyncClient,create_async_wasender
44
import json
55
from wasenderapi.models import RateLimitInfo, WasenderSuccessResponse
66
from wasenderapi.sessions import (
@@ -26,7 +26,7 @@
2626

2727
@pytest.fixture
2828
def mock_client_with_async_fetch():
29-
client = WasenderClient("test_api_key")
29+
client = WasenderAsyncClient("test_api_key")
3030
client.fetch_impl = AsyncMock()
3131
return client
3232

@@ -474,4 +474,4 @@ def test_delete_whatsapp_session_result(self, mock_rate_limit_info_dict):
474474
assert model.response.success is True
475475
assert model.response.data is None
476476

477-
# ... (TestSessionsClientMethods to be refactored next) ...
477+
# ... (TestSessionsClientMethods to be refactored next) ...

0 commit comments

Comments
 (0)