@@ -44,7 +44,7 @@ def test_invalid_provider_configs_type(self, provider_configs):
44
44
with pytest .raises (ValueError ) as excinfo :
45
45
test_config .build_server_request ()
46
46
assert str (excinfo .value ).startswith ('provider_configs must be an array of type'
47
- ' ProviderConfigs .' )
47
+ ' ProviderConfig .' )
48
48
49
49
@pytest .mark .parametrize ('provider_configs' ,
50
50
[[True ], [1 , 2 ],
@@ -55,7 +55,7 @@ def test_invalid_mfa_config_provider_config(self, provider_configs):
55
55
with pytest .raises (ValueError ) as excinfo :
56
56
test_config .build_server_request ()
57
57
assert str (excinfo .value ).startswith ('provider_configs must be an array of type'
58
- ' ProviderConfigs .' )
58
+ ' ProviderConfig .' )
59
59
60
60
61
61
class TestProviderConfig :
@@ -73,7 +73,7 @@ def test_undefined_provider_config_state(self):
73
73
with pytest .raises (ValueError ) as excinfo :
74
74
test_config .build_server_request ()
75
75
assert str (excinfo .value ).startswith (
76
- 'provider_config .state must be defined.' )
76
+ 'ProviderConfig .state must be defined.' )
77
77
78
78
@pytest .mark .parametrize ('state' ,
79
79
['' , 1 , True , False , [], (), {}, "foo" , 'ENABLED' ])
@@ -83,7 +83,7 @@ def test_invalid_provider_config_state(self, state):
83
83
)
84
84
with pytest .raises (ValueError ) as excinfo :
85
85
test_config .build_server_request ()
86
- assert str (excinfo .value ).startswith ('provider_config .state must be of type'
86
+ assert str (excinfo .value ).startswith ('ProviderConfig .state must be of type'
87
87
' ProviderConfig.State.' )
88
88
89
89
@pytest .mark .parametrize ('state' ,
@@ -93,7 +93,7 @@ def test_undefined_totp_provider_config(self, state):
93
93
test_config = multi_factor_config_mgt .ProviderConfig (state = state )
94
94
with pytest .raises (ValueError ) as excinfo :
95
95
test_config .build_server_request ()
96
- assert str (excinfo .value ).startswith ('provider_config .totp_provider_config must be'
96
+ assert str (excinfo .value ).startswith ('ProviderConfig .totp_provider_config must be'
97
97
' defined.' )
98
98
99
99
@pytest .mark .parametrize ('totp_provider_config' ,
@@ -103,7 +103,7 @@ def test_invalid_totp_provider_config_type(self, totp_provider_config):
103
103
test_config .totp_provider_config = totp_provider_config
104
104
with pytest .raises (ValueError ) as excinfo :
105
105
test_config .build_server_request ()
106
- assert str (excinfo .value ).startswith ('provider_configs .totp_provider_config must be of type'
106
+ assert str (excinfo .value ).startswith ('ProviderConfig .totp_provider_config must be of type'
107
107
' TOTPProviderConfig.' )
108
108
109
109
0 commit comments