Contract tests#
The test suites checking that a storage follows the storage contract. They need the
testing extra.
- class scim2_server.testing.ScimStorageContract[source]#
The rules every
ScimStoragefollows.The suite uses the
UserandGroupresource types of theproviderfixture, which serves the default resource types of RFC 7643 unless overridden. The tests of a feature that the configuration of the provider does not announce, such as sorting, are skipped.- supports_root_search: bool = True#
Whether the storage searches several resource types at once.
Set it to
Falsefor a storage raisingNotImplementedExceptionin that case.
- class scim2_server.testing.AsyncScimStorageContract[source]#
The rules every
AsyncScimStoragefollows.These are the rules of
ScimStorageContract. Each test runs the coroutines of the storage on a single event loop, one after the other.