@@ -16,7 +16,9 @@ def test_discovered_scim2_server(scim2_server_app):
1616
1717 executed_results = [r for r in results if r .status != Status .SKIPPED ]
1818 assert len (executed_results ) > 0
19- assert all (r .status in (Status .SUCCESS , Status .ERROR ) for r in executed_results )
19+ assert all (
20+ r .status not in (Status .ERROR , Status .CRITICAL ) for r in executed_results
21+ )
2022
2123
2224def test_undiscovered_scim2_server (scim2_server_app ):
@@ -26,7 +28,9 @@ def test_undiscovered_scim2_server(scim2_server_app):
2628
2729 executed_results = [r for r in results if r .status != Status .SKIPPED ]
2830 assert len (executed_results ) > 0
29- assert all (r .status in (Status .SUCCESS , Status .ERROR ) for r in executed_results )
31+ assert all (
32+ r .status not in (Status .ERROR , Status .CRITICAL ) for r in executed_results
33+ )
3034
3135
3236@pytest .mark .parametrize ("tag" , get_all_available_tags ())
@@ -36,10 +40,10 @@ def test_individual_filters(scim2_server_app, tag, resource_type):
3640 client = TestSCIMClient (Client (scim2_server_app ))
3741 client .discover ()
3842 results = check_server (
39- client , raise_exceptions = False , include_tags = {tag }, resource_types = resource_type
43+ client , raise_exceptions = True , include_tags = {tag }, resource_types = resource_type
4044 )
4145 for result in results :
42- assert result .status in (Status .SKIPPED , Status .SUCCESS ), (
46+ assert result .status not in (Status .ERROR , Status .CRITICAL ), (
4347 f"Result { result .title } failed: { result .reason } "
4448 )
4549
0 commit comments