We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23b7123 commit 4880200Copy full SHA for 4880200
tests/conftest.py
@@ -8,10 +8,10 @@
8
9
@pytest.fixture
10
def sync_client(httpserver):
11
- client = Client(base_url=f"http://localhost:{httpserver.port}")
12
- scim_client = SyncSCIMClient(
13
- client,
14
- resource_models=[User, Group],
15
- )
16
- scim_client.register_naive_resource_types()
17
- return scim_client
+ with Client(base_url=f"http://localhost:{httpserver.port}") as client:
+ scim_client = SyncSCIMClient(
+ client,
+ resource_models=[User, Group],
+ )
+ scim_client.register_naive_resource_types()
+ yield scim_client
0 commit comments