{"id":28545501,"url":"https://github.com/pytest-dev/pytest-scim2-server","last_synced_at":"2026-06-19T18:33:33.702Z","repository":{"id":273666846,"uuid":"920472837","full_name":"pytest-dev/pytest-scim2-server","owner":"pytest-dev","description":"SCIM2 server fixture for Pytest","archived":false,"fork":false,"pushed_at":"2025-11-14T12:45:27.000Z","size":308,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-06-19T00:28:35.480Z","etag":null,"topics":["pytest","pytest-plugin","rfc7643","rfc7644","scim","scim2"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pytest-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["yaal-coop"]}},"created_at":"2025-01-22T08:03:23.000Z","updated_at":"2025-11-14T12:45:31.000Z","dependencies_parsed_at":"2025-01-22T09:24:49.137Z","dependency_job_id":"369018f4-c5ee-4158-bb70-7af9d65f8689","html_url":"https://github.com/pytest-dev/pytest-scim2-server","commit_stats":null,"previous_names":["azmeuk/pytest-scim2-server","pytest-dev/pytest-scim2-server"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/pytest-dev/pytest-scim2-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-scim2-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-scim2-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-scim2-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-scim2-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pytest-dev","download_url":"https://codeload.github.com/pytest-dev/pytest-scim2-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-scim2-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34544404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pytest","pytest-plugin","rfc7643","rfc7644","scim","scim2"],"created_at":"2025-06-09T23:07:54.831Z","updated_at":"2026-06-19T18:33:33.683Z","avatar_url":"https://github.com/pytest-dev.png","language":"Python","funding_links":["https://github.com/sponsors/yaal-coop"],"categories":[],"sub_categories":[],"readme":"# pytest-scim2-server\n\nSCIM2 server fixture for Pytest\n\n## Installation\n\n```\npip install pytest-scim2-server\n```\n\n## Usage\n\npytest-scim2-server creates a ``scim2_server`` fixture that runs an instance of [scim2-server](https://github.com/python-scim/scim2-server) on a random port, in a dedicated thread.\n\n```python\nimport requests\n\ndef test_scim_foobar(scim2_server):\n    res = request.get(f\"http://localhost:{scim2_server.port}\")\n    ...\n```\n\nNote that you can use [scim2-client](https://scim2-client.readthedocs.io) to interact with the SCIM server.\n\n```python\nimport pytest\nfrom httpx import Client\nfrom scim2_client.engines.httpx import SyncSCIMClient\n\n\n@pytest.fixture(scope=\"session\")\ndef scim_client(scim2_server):\n    http_client = Client(base_url=f\"http://localhost:{scim2_server.port}\")\n    scim_client = SyncSCIMClient(http_client)\n    scim_client.discover()\n    return scim_client\n\n\ndef test_scim2_server(scim_client):\n    User = scim_client.get_resource_model(\"User\")\n    user = User(user_name=\"bjensen@example.com\")\n    response = scim_client.create(user)\n\n    users = scim_client.query(User)\n    assert users.resources[0].id == response.id\n```\n\n## Related projects\n\nIf you are working with SCIM and Python you might also want to have a look at:\n- [scim2-models](https://scim2-models.readthedocs.io)\n- [scim2-client](https://scim2-client.readthedocs.io)\n- [scim2-cli](https://scim2-cli.readthedocs.io)\n- [scim2-tester](https://scim2-tester.readthedocs.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-dev%2Fpytest-scim2-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytest-dev%2Fpytest-scim2-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-dev%2Fpytest-scim2-server/lists"}