Skip to content

risa.store.testing

verify_store, the conformance check for Store implementations.

verify_store async

verify_store(store: Store) -> None

Check that store behaves the way risa relies on.

Seventeen checks cover round trips, versions, the compare-and-set, expiry, touch and the lock. They run concurrently, each on its own random key under risa:conformance:, and each deletes what it wrote. Run it against a real instance of the backend, from a test or a script; it needs no test framework.

Parameters:

  • store (Store) –

    The store to check, connected to a real instance of its backend.

Raises: