@@ -16,14 +16,14 @@ def async_users_service(async_http_client):
1616
1717
1818@pytest .mark .parametrize (
19- "method" , ["get" , "update" , "delete" , "block" , "unblock" , "sso" , "sso_check" ]
19+ "method" , ["get" , "update" , "delete" , "block" , "unblock" , "sso" , "sso_check" , "set_password" ]
2020)
2121def test_mixins_present (users_service , method ):
2222 assert hasattr (users_service , method )
2323
2424
2525@pytest .mark .parametrize (
26- "method" , ["get" , "update" , "delete" , "block" , "unblock" , "sso" , "sso_check" ]
26+ "method" , ["get" , "update" , "delete" , "block" , "unblock" , "sso" , "sso_check" , "set_password" ]
2727)
2828def test_async_mixins_present (async_users_service , method ):
2929 assert hasattr (async_users_service , method )
@@ -34,9 +34,10 @@ def test_async_mixins_present(async_users_service, method):
3434 [
3535 ("sso" , {"id" : "OBJ-0000-0001" , "status" : "update" }),
3636 ("sso_check" , {"id" : "OBJ-0000-0001" , "status" : "update" }),
37+ ("set_password" , {"id" : "OBJ-0000-0001" , "status" : "update" }),
3738 ],
3839)
39- def test_sso_resource_actions (users_service , action , input_status ):
40+ def test_resource_actions (users_service , action , input_status ):
4041 request_expected_content = b'{"id":"OBJ-0000-0001","status":"update"}'
4142 response_expected_data = {"id" : "OBJ-0000-0001" , "status" : "new_status" }
4243 with respx .mock :
@@ -63,9 +64,10 @@ def test_sso_resource_actions(users_service, action, input_status):
6364 [
6465 ("sso" , None ),
6566 ("sso_check" , None ),
67+ ("set_password" , None ),
6668 ],
6769)
68- def test_sso_resource_actions_no_data (users_service , action , input_status ):
70+ def test_resource_actions_no_data (users_service , action , input_status ):
6971 request_expected_content = b""
7072 response_expected_data = {"id" : "OBJ-0000-0001" , "status" : "new_status" }
7173 with respx .mock :
@@ -92,9 +94,10 @@ def test_sso_resource_actions_no_data(users_service, action, input_status):
9294 [
9395 ("sso" , {"id" : "OBJ-0000-0001" , "status" : "update" }),
9496 ("sso_check" , {"id" : "OBJ-0000-0001" , "status" : "update" }),
97+ ("set_password" , {"id" : "OBJ-0000-0001" , "status" : "update" }),
9598 ],
9699)
97- async def test_async_sso_resource_actions (async_users_service , action , input_status ):
100+ async def test_async_resource_actions (async_users_service , action , input_status ):
98101 request_expected_content = b'{"id":"OBJ-0000-0001","status":"update"}'
99102 response_expected_data = {"id" : "OBJ-0000-0001" , "status" : "new_status" }
100103 with respx .mock :
@@ -121,9 +124,10 @@ async def test_async_sso_resource_actions(async_users_service, action, input_sta
121124 [
122125 ("sso" , None ),
123126 ("sso_check" , None ),
127+ ("set_password" , None ),
124128 ],
125129)
126- async def test_async_sso_resource_actions_no_data (async_users_service , action , input_status ):
130+ async def test_async_resource_actions_no_data (async_users_service , action , input_status ):
127131 request_expected_content = b""
128132 response_expected_data = {"id" : "OBJ-0000-0001" , "status" : "new_status" }
129133 with respx .mock :
0 commit comments