diff --git a/koreanbots/client.py b/koreanbots/client.py index a52bf3a..0841bd3 100644 --- a/koreanbots/client.py +++ b/koreanbots/client.py @@ -41,11 +41,6 @@ def __init__( ) -> None: super().__init__(api_key, session) - @property - def _http(self): # type: ignore - # 내부 프로퍼티 - return super() - async def post_guild_count(self, bot_id: int, **kwargs: Optional[int]) -> None: """ 길드 개수를 서버에 전송합니다. diff --git a/tests/test_http.py b/tests/test_http.py deleted file mode 100644 index 5ca2e90..0000000 --- a/tests/test_http.py +++ /dev/null @@ -1,30 +0,0 @@ -import pytest - -from koreanbots.client import Koreanbots - - -@pytest.mark.asyncio -async def test_get_bot_info(session: Koreanbots): - response = await session._http.get_bot_info(653534001742741552) - assert response["code"] == 200 - - -@pytest.mark.asyncio -async def test_get_user_info(session: Koreanbots): - response = await session._http.get_user_info(285185716240252929) - assert response["code"] == 200 - - -@pytest.mark.asyncio -async def test_get_server_info(session: Koreanbots): - response = await session._http.get_server_info(653083797763522580) - assert response["code"] == 200 - - -@pytest.mark.asyncio -async def test_get(session: Koreanbots): - response = await session._http.get_bot_widget_url("votes", 653534001742741552) - assert ( - response - == "https://koreanbots.dev/api/v2/widget/bots/votes/653534001742741552.svg?style=flat&scale=1.0&icon=False" - )