Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.17.0"
".": "0.17.1"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 36
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/liquidmetal-ai%2Fraindrop-5cf76019d5bb0b47bae031ba30cd289190a9e6a9e0592d0a82b404b5ef7c1d12.yml
openapi_spec_hash: 7f83735738a64d49551a9a4a0b3be1b0
config_hash: 2b17c03801f5ecdac15d3c08fe63b0af
config_hash: db79168b9cf2e580b0023d018d73a61d
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.17.1 (2026-02-20)

Full Changelog: [v0.17.0...v0.17.1](https://github.com/LiquidMetal-AI/lm-raindrop-python-sdk/compare/v0.17.0...v0.17.1)

### Chores

* **internal:** remove mock server code ([9381e3a](https://github.com/LiquidMetal-AI/lm-raindrop-python-sdk/commit/9381e3afd7f2e8c1be97315fc33bb328728d974e))
* update mock server docs ([d3825e6](https://github.com/LiquidMetal-AI/lm-raindrop-python-sdk/commit/d3825e67de4bcba9aba00e79a3b71a74d6f6f2ee))

## 0.17.0 (2026-02-19)

Full Changelog: [v0.6.43...v0.17.0](https://github.com/LiquidMetal-AI/lm-raindrop-python-sdk/compare/v0.6.43...v0.17.0)
Expand Down
7 changes: 0 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,6 @@ $ pip install ./path-to-wheel-file.whl

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```sh
# you will need npm installed
$ npx prism mock path/to/your/openapi.yml
```

```sh
$ ./scripts/test
```
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "lm-raindrop"
version = "0.17.0"
version = "0.17.1"
description = "The official Python library for the raindrop API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
41 changes: 0 additions & 41 deletions scripts/mock

This file was deleted.

46 changes: 0 additions & 46 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,53 +4,7 @@ set -e

cd "$(dirname "$0")/.."

RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m' # No Color

function prism_is_running() {
curl --silent "http://localhost:4010" >/dev/null 2>&1
}

kill_server_on_port() {
pids=$(lsof -t -i tcp:"$1" || echo "")
if [ "$pids" != "" ]; then
kill "$pids"
echo "Stopped $pids."
fi
}

function is_overriding_api_base_url() {
[ -n "$TEST_API_BASE_URL" ]
}

if ! is_overriding_api_base_url && ! prism_is_running ; then
# When we exit this script, make sure to kill the background mock server process
trap 'kill_server_on_port 4010' EXIT

# Start the dev server
./scripts/mock --daemon
fi

if is_overriding_api_base_url ; then
echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}"
echo
elif ! prism_is_running ; then
echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server"
echo -e "running against your OpenAPI spec."
echo
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the prism command:"
echo
echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}"
echo

exit 1
else
echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}"
echo
fi

export DEFER_PYDANTIC_BUILD=false

Expand Down
2 changes: 1 addition & 1 deletion src/raindrop/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "raindrop"
__version__ = "0.17.0" # x-release-please-version
__version__ = "0.17.1" # x-release-please-version
16 changes: 8 additions & 8 deletions tests/api_resources/bucket/test_by_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class TestByStatus:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_list_objects(self, client: Raindrop) -> None:
by_status = client.bucket.by_status.list_objects(
Expand All @@ -32,7 +32,7 @@ def test_method_list_objects(self, client: Raindrop) -> None:
)
assert_matches_type(ByStatusListObjectsResponse, by_status, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_list_objects_with_all_params(self, client: Raindrop) -> None:
by_status = client.bucket.by_status.list_objects(
Expand All @@ -50,7 +50,7 @@ def test_method_list_objects_with_all_params(self, client: Raindrop) -> None:
)
assert_matches_type(ByStatusListObjectsResponse, by_status, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_raw_response_list_objects(self, client: Raindrop) -> None:
response = client.bucket.by_status.with_raw_response.list_objects(
Expand All @@ -69,7 +69,7 @@ def test_raw_response_list_objects(self, client: Raindrop) -> None:
by_status = response.parse()
assert_matches_type(ByStatusListObjectsResponse, by_status, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_streaming_response_list_objects(self, client: Raindrop) -> None:
with client.bucket.by_status.with_streaming_response.list_objects(
Expand All @@ -96,7 +96,7 @@ class TestAsyncByStatus:
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
)

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_list_objects(self, async_client: AsyncRaindrop) -> None:
by_status = await async_client.bucket.by_status.list_objects(
Expand All @@ -111,7 +111,7 @@ async def test_method_list_objects(self, async_client: AsyncRaindrop) -> None:
)
assert_matches_type(ByStatusListObjectsResponse, by_status, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_list_objects_with_all_params(self, async_client: AsyncRaindrop) -> None:
by_status = await async_client.bucket.by_status.list_objects(
Expand All @@ -129,7 +129,7 @@ async def test_method_list_objects_with_all_params(self, async_client: AsyncRain
)
assert_matches_type(ByStatusListObjectsResponse, by_status, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_raw_response_list_objects(self, async_client: AsyncRaindrop) -> None:
response = await async_client.bucket.by_status.with_raw_response.list_objects(
Expand All @@ -148,7 +148,7 @@ async def test_raw_response_list_objects(self, async_client: AsyncRaindrop) -> N
by_status = await response.parse()
assert_matches_type(ByStatusListObjectsResponse, by_status, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_streaming_response_list_objects(self, async_client: AsyncRaindrop) -> None:
async with async_client.bucket.by_status.with_streaming_response.list_objects(
Expand Down
16 changes: 8 additions & 8 deletions tests/api_resources/query/test_episodic_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class TestEpisodicMemory:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_search(self, client: Raindrop) -> None:
episodic_memory = client.query.episodic_memory.search(
Expand All @@ -33,7 +33,7 @@ def test_method_search(self, client: Raindrop) -> None:
)
assert_matches_type(EpisodicMemorySearchResponse, episodic_memory, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_search_with_all_params(self, client: Raindrop) -> None:
episodic_memory = client.query.episodic_memory.search(
Expand All @@ -51,7 +51,7 @@ def test_method_search_with_all_params(self, client: Raindrop) -> None:
)
assert_matches_type(EpisodicMemorySearchResponse, episodic_memory, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_raw_response_search(self, client: Raindrop) -> None:
response = client.query.episodic_memory.with_raw_response.search(
Expand All @@ -70,7 +70,7 @@ def test_raw_response_search(self, client: Raindrop) -> None:
episodic_memory = response.parse()
assert_matches_type(EpisodicMemorySearchResponse, episodic_memory, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_streaming_response_search(self, client: Raindrop) -> None:
with client.query.episodic_memory.with_streaming_response.search(
Expand All @@ -97,7 +97,7 @@ class TestAsyncEpisodicMemory:
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
)

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_search(self, async_client: AsyncRaindrop) -> None:
episodic_memory = await async_client.query.episodic_memory.search(
Expand All @@ -112,7 +112,7 @@ async def test_method_search(self, async_client: AsyncRaindrop) -> None:
)
assert_matches_type(EpisodicMemorySearchResponse, episodic_memory, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_search_with_all_params(self, async_client: AsyncRaindrop) -> None:
episodic_memory = await async_client.query.episodic_memory.search(
Expand All @@ -130,7 +130,7 @@ async def test_method_search_with_all_params(self, async_client: AsyncRaindrop)
)
assert_matches_type(EpisodicMemorySearchResponse, episodic_memory, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_raw_response_search(self, async_client: AsyncRaindrop) -> None:
response = await async_client.query.episodic_memory.with_raw_response.search(
Expand All @@ -149,7 +149,7 @@ async def test_raw_response_search(self, async_client: AsyncRaindrop) -> None:
episodic_memory = await response.parse()
assert_matches_type(EpisodicMemorySearchResponse, episodic_memory, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_streaming_response_search(self, async_client: AsyncRaindrop) -> None:
async with async_client.query.episodic_memory.with_streaming_response.search(
Expand Down
16 changes: 8 additions & 8 deletions tests/api_resources/query/test_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class TestMemory:
parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_search(self, client: Raindrop) -> None:
memory = client.query.memory.search(
Expand All @@ -34,7 +34,7 @@ def test_method_search(self, client: Raindrop) -> None:
)
assert_matches_type(MemorySearchResponse, memory, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_method_search_with_all_params(self, client: Raindrop) -> None:
memory = client.query.memory.search(
Expand All @@ -54,7 +54,7 @@ def test_method_search_with_all_params(self, client: Raindrop) -> None:
)
assert_matches_type(MemorySearchResponse, memory, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_raw_response_search(self, client: Raindrop) -> None:
response = client.query.memory.with_raw_response.search(
Expand All @@ -74,7 +74,7 @@ def test_raw_response_search(self, client: Raindrop) -> None:
memory = response.parse()
assert_matches_type(MemorySearchResponse, memory, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
def test_streaming_response_search(self, client: Raindrop) -> None:
with client.query.memory.with_streaming_response.search(
Expand Down Expand Up @@ -102,7 +102,7 @@ class TestAsyncMemory:
"async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
)

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_search(self, async_client: AsyncRaindrop) -> None:
memory = await async_client.query.memory.search(
Expand All @@ -118,7 +118,7 @@ async def test_method_search(self, async_client: AsyncRaindrop) -> None:
)
assert_matches_type(MemorySearchResponse, memory, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_method_search_with_all_params(self, async_client: AsyncRaindrop) -> None:
memory = await async_client.query.memory.search(
Expand All @@ -138,7 +138,7 @@ async def test_method_search_with_all_params(self, async_client: AsyncRaindrop)
)
assert_matches_type(MemorySearchResponse, memory, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_raw_response_search(self, async_client: AsyncRaindrop) -> None:
response = await async_client.query.memory.with_raw_response.search(
Expand All @@ -158,7 +158,7 @@ async def test_raw_response_search(self, async_client: AsyncRaindrop) -> None:
memory = await response.parse()
assert_matches_type(MemorySearchResponse, memory, path=["response"])

@pytest.mark.skip(reason="Prism tests are disabled")
@pytest.mark.skip(reason="Mock server tests are disabled")
@parametrize
async def test_streaming_response_search(self, async_client: AsyncRaindrop) -> None:
async with async_client.query.memory.with_streaming_response.search(
Expand Down
Loading