Skip to content

Commit ab4a15a

Browse files
committed
doc: use raise_exceptions=True in the documentation examples
1 parent 4b48f97 commit ab4a15a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

doc/tutorial.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,12 @@ For comprehensive test coverage, you can create parametrized tests that exercise
143143
@pytest.mark.parametrize("tag", get_all_available_tags())
144144
@pytest.mark.parametrize("resource_type", [None] + get_standard_resource_types())
145145
def test_individual_filters(scim_client, tag, resource_type):
146-
results = check_server(
146+
for result in check_server(
147147
scim_client,
148-
raise_exceptions=False,
148+
raise_exceptions=True,
149149
include_tags={tag},
150150
resource_types=resource_type
151-
)
152-
153-
for result in results:
151+
):
154152
assert result.status in (Status.SKIPPED, Status.SUCCESS)
155153
156154
This parametrized approach automatically discovers all available tags and resource types, ensuring that your test suite covers all possible combinations as your SCIM implementation evolves. Each test verifies that results have either :attr:`~scim2_tester.Status.SUCCESS` or :attr:`~scim2_tester.Status.SKIPPED` status.

0 commit comments

Comments
 (0)