parent
65cdc9ada7
commit
1b71618d31
|
@ -11,11 +11,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
- Nothing yet.
|
||||
|
||||
## [10.1.2]
|
||||
|
||||
## Fixed
|
||||
|
||||
- HTTP 4XX errors now raise a `SporeStackUserError` instead of `SporeStackServerError`.
|
||||
|
||||
## [10.2.0 - 2023-04-14]
|
||||
## [10.1.1 - 2023-04-14]
|
||||
|
||||
## Added
|
||||
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
__all__ = ["api", "api_client", "exceptions"]
|
||||
|
||||
__version__ = "10.1.1"
|
||||
__version__ = "10.1.2"
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue