Skip to content

Commit 82517c5

Browse files
committed
chore: bump to scim2-server 0.3.0
1 parent 897c3e8 commit 82517c5

3 files changed

Lines changed: 6 additions & 15 deletions

File tree

‎CHANGES.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Unreleased
22

3+
- **Breaking:** scim2-server 0.3.0 is now required. The `scim2_server_app` fixture returns a `SCIMApplication` serving the default schemas and resource types.
34
- Python 3.11 is now the minimum supported version.
45

56
# 0.1.6 - 2025-01-14

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ keywords = ["pytest", "fixture", "scim", "scim2", "rfc7643", "rfc7644"]
1414
dependencies = [
1515
"portpicker>=1.6.0",
1616
"pytest>=8.3.4",
17-
"scim2-server>=0.1.4",
17+
"scim2-server>=0.3.0",
1818
]
1919
authors = [{name="Yaal Coop", email="contact@yaal.coop"}]
2020
maintainers = [{name="Éloi Rivard", email="eloi@yaal.coop"}]

‎pytest_scim2_server/__init__.py‎

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
import portpicker
77
import pytest
88
from scim2_server.backend import InMemoryBackend
9-
from scim2_server.provider import SCIMProvider
10-
from scim2_server.utils import load_default_resource_types
11-
from scim2_server.utils import load_default_schemas
9+
from scim2_server.provider import SCIMApplication
10+
from scim2_server.utils import load_default_provider
1211

1312

1413
@dataclass
@@ -18,7 +17,7 @@ class Server:
1817
port: int
1918
"""The port on which the local http server listens."""
2019

21-
app: SCIMProvider
20+
app: SCIMApplication
2221
"""The scim2-server WSGI application."""
2322

2423
logging: bool = False
@@ -38,16 +37,7 @@ def log_request(self, code="-", size="-"):
3837
@pytest.fixture(scope="session")
3938
def scim2_server_app():
4039
"""SCIM2 server WSGI application."""
41-
backend = InMemoryBackend()
42-
provider = SCIMProvider(backend)
43-
44-
for schema in load_default_schemas().values():
45-
provider.register_schema(schema)
46-
47-
for resource_type in load_default_resource_types().values():
48-
provider.register_resource_type(resource_type)
49-
50-
return provider
40+
return SCIMApplication(InMemoryBackend(), load_default_provider())
5141

5242

5343
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)