@@ -14,6 +14,7 @@ def setup(self):
14
14
client ._passwordless = None
15
15
client ._portal = None
16
16
client ._sso = None
17
+ client ._users = None
17
18
18
19
def test_initialize_sso (self , set_api_key_and_client_id ):
19
20
assert bool (client .sso )
@@ -36,6 +37,9 @@ def test_initialize_passwordless(self, set_api_key):
36
37
def test_initialize_portal (self , set_api_key ):
37
38
assert bool (client .portal )
38
39
40
+ def test_initialize_users (self , set_api_key , set_client_id ):
41
+ assert bool (client .users )
42
+
39
43
def test_initialize_sso_missing_api_key (self , set_client_id ):
40
44
with pytest .raises (ConfigurationException ) as ex :
41
45
client .sso
@@ -107,3 +111,28 @@ def test_initialize_portal_missing_api_key(self):
107
111
message = str (ex )
108
112
109
113
assert "api_key" in message
114
+
115
+ def test_initialize_users_missing_client_id (self , set_api_key ):
116
+ with pytest .raises (ConfigurationException ) as ex :
117
+ client .users
118
+
119
+ message = str (ex )
120
+
121
+ assert "client_id" in message
122
+
123
+ def test_initialize_users_missing_api_key (self , set_client_id ):
124
+ with pytest .raises (ConfigurationException ) as ex :
125
+ client .users
126
+
127
+ message = str (ex )
128
+
129
+ assert "api_key" in message
130
+
131
+ def test_initialize_users_missing_api_key_and_client_id (self ):
132
+ with pytest .raises (ConfigurationException ) as ex :
133
+ client .users
134
+
135
+ message = str (ex )
136
+
137
+ assert "api_key" in message
138
+ assert "client_id" in message
0 commit comments