|
|
|
@ -3,6 +3,8 @@ import pytest
|
|
|
|
|
import respx
|
|
|
|
|
from sporestack import api_client, exceptions
|
|
|
|
|
|
|
|
|
|
# respx seems to ignore the uri://domain if you don't specify it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test__is_onion_url() -> None:
|
|
|
|
|
onion_url = "http://spore64i5sofqlfz5gq2ju4msgzojjwifls7"
|
|
|
|
@ -85,7 +87,7 @@ def test_token_info(respx_mock: respx.MockRouter) -> None:
|
|
|
|
|
"days_remaining": 0,
|
|
|
|
|
}
|
|
|
|
|
route_response = httpx.Response(200, json=response_json)
|
|
|
|
|
route = respx_mock.get(f"https://api.sporestack.com/token/{dummy_token}/info").mock(
|
|
|
|
|
route = respx_mock.get(f"/token/{dummy_token}/info").mock(
|
|
|
|
|
return_value=route_response
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|