Skip to content

Commit cabd1b4

Browse files
committed
cleanup test warnings
1 parent 5d41ae7 commit cabd1b4

File tree

13 files changed

+13
-1
lines changed

13 files changed

+13
-1
lines changed

key-value/key-value-aio/tests/stores/dynamodb/test_dynamodb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def get_dynamo_client_from_store(store: DynamoDBStore) -> DynamoDBClient:
6464

6565

6666
@pytest.mark.skipif(should_skip_docker_tests(), reason="Docker is not available")
67+
@pytest.mark.filterwarnings("ignore:A configured store is unstable and may change in a backwards incompatible way. Use at your own risk.")
6768
class TestDynamoDBStore(ContextManagerStoreTestMixin, BaseStoreTests):
6869
@pytest.fixture(autouse=True, scope="session", params=DYNAMODB_VERSIONS_TO_TEST)
6970
async def setup_dynamodb(self, request: pytest.FixtureRequest) -> AsyncGenerator[None, None]:

key-value/key-value-aio/tests/stores/memcached/test_memcached.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class MemcachedFailedToStartError(Exception):
4545

4646

4747
@pytest.mark.skipif(should_skip_docker_tests(), reason="Docker is not available")
48+
@pytest.mark.filterwarnings("ignore:A configured store is unstable and may change in a backwards incompatible way. Use at your own risk.")
4849
class TestMemcachedStore(ContextManagerStoreTestMixin, BaseStoreTests):
4950
@pytest.fixture(autouse=True, scope="session", params=MEMCACHED_VERSIONS_TO_TEST)
5051
async def setup_memcached(self, request: pytest.FixtureRequest) -> AsyncGenerator[None, None]:

key-value/key-value-aio/tests/stores/mongodb/test_mongodb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ async def clean_mongodb_database(store: MongoDBStore) -> None:
9999
_ = await store._client.drop_database(name_or_database=store._db.name) # pyright: ignore[reportPrivateUsage]
100100

101101

102+
@pytest.mark.filterwarnings("ignore:A configured store is unstable and may change in a backwards incompatible way. Use at your own risk.")
102103
class BaseMongoDBStoreTests(ContextManagerStoreTestMixin, BaseStoreTests):
103104
"""Base class for MongoDB store tests."""
104105

key-value/key-value-aio/tests/stores/rocksdb/test_rocksdb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from tests.stores.base import BaseStoreTests, ContextManagerStoreTestMixin
1515

1616

17+
@pytest.mark.filterwarnings("ignore:A configured store is unstable and may change in a backwards incompatible way. Use at your own risk.")
1718
class TestRocksDBStore(ContextManagerStoreTestMixin, BaseStoreTests):
1819
@override
1920
@pytest.fixture

key-value/key-value-aio/tests/stores/simple/test_store.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from tests.stores.base import BaseStoreTests
66

77

8+
@pytest.mark.filterwarnings("ignore:A configured store is unstable and may change in a backwards incompatible way. Use at your own risk.")
89
class TestSimpleStore(BaseStoreTests):
910
@override
1011
@pytest.fixture

key-value/key-value-aio/tests/stores/vault/test_vault.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class VaultFailedToStartError(Exception):
3030

3131

3232
@pytest.mark.skipif(should_skip_docker_tests(), reason="Docker is not running")
33+
@pytest.mark.filterwarnings("ignore:A configured store is unstable and may change in a backwards incompatible way. Use at your own risk.")
3334
class TestVaultStore(BaseStoreTests):
3435
def get_vault_client(self):
3536
import hvac

key-value/key-value-aio/tests/stores/windows_registry/test_windows_registry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616

1717
@pytest.mark.skipif(condition=not detect_on_windows(), reason="WindowsRegistryStore is only available on Windows")
18+
@pytest.mark.filterwarnings("ignore:A configured store is unstable and may change in a backwards incompatible way. Use at your own risk.")
1819
class TestWindowsRegistryStore(BaseStoreTests):
1920
def cleanup(self):
2021
from winreg import HKEY_CURRENT_USER

key-value/key-value-shared/src/key_value/shared/utils/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def load_dict(self, data: dict[str, Any]) -> ManagedEntry:
8686

8787
value = data["value"]
8888

89-
managed_entry_value: dict[str, Any] = data["value"]
89+
managed_entry_value: dict[str, Any] = {}
9090

9191
if isinstance(value, str):
9292
managed_entry_value = load_from_json(json_str=value)

key-value/key-value-sync/tests/code_gen/stores/mongodb/test_mongodb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def clean_mongodb_database(store: MongoDBStore) -> None:
100100
_ = store._client.drop_database(name_or_database=store._db.name) # pyright: ignore[reportPrivateUsage]
101101

102102

103+
@pytest.mark.filterwarnings("ignore:A configured store is unstable and may change in a backwards incompatible way. Use at your own risk.")
103104
class BaseMongoDBStoreTests(ContextManagerStoreTestMixin, BaseStoreTests):
104105
"""Base class for MongoDB store tests."""
105106

key-value/key-value-sync/tests/code_gen/stores/rocksdb/test_rocksdb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from tests.code_gen.stores.base import BaseStoreTests, ContextManagerStoreTestMixin
1818

1919

20+
@pytest.mark.filterwarnings("ignore:A configured store is unstable and may change in a backwards incompatible way. Use at your own risk.")
2021
class TestRocksDBStore(ContextManagerStoreTestMixin, BaseStoreTests):
2122
@override
2223
@pytest.fixture

0 commit comments

Comments
 (0)