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 ScimStorage follows.

The suite uses the User and Group resource types of the provider fixture, 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.

Whether the storage searches several resource types at once.

Set it to False for a storage raising NotImplementedException in that case.

class scim2_server.testing.AsyncScimStorageContract[source]#

The rules every AsyncScimStorage follows.

These are the rules of ScimStorageContract. Each test runs the coroutines of the storage on a single event loop, one after the other.