f40a6bbeb7c2616de351f2d0fcb927f606165017,apps/domain/tests/test_core/test_services/test_user_service.py,,test_create_second_user_with_owner_role_name,#Any#Any#Any#,200
Before Change
"current_user": owner_id,
}
response = build_signup_syft_msg(domain, second_user_content, generic_key)
// Check message response
assert response.success == False
assert response.content == {
After Change
"current_user": owner_id,
}
try:
build_syft_msg(domain, CreateUserMessage, second_user_content, generic_key)
pytest.fail("We shouldn"t execute this line!")
except Exception as e:
assert str(e) == "You can\"t create a new User with "Owner" role!"
// Check database
assert len(users) == 1
def test_create_second_user_with_role_and_permission(database, domain, cleanup):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 9
Instances
Project Name: OpenMined/Grid
Commit Name: f40a6bbeb7c2616de351f2d0fcb927f606165017
Time: 2021-02-10
Author: ionesiojr@gmail.com
File Name: apps/domain/tests/test_core/test_services/test_user_service.py
Class Name:
Method Name: test_create_second_user_with_owner_role_name
Project Name: OpenMined/Grid
Commit Name: f40a6bbeb7c2616de351f2d0fcb927f606165017
Time: 2021-02-10
Author: ionesiojr@gmail.com
File Name: apps/domain/tests/test_core/test_services/test_user_service.py
Class Name:
Method Name: test_create_second_user_with_invalid_role_name
Project Name: OpenMined/Grid
Commit Name: f40a6bbeb7c2616de351f2d0fcb927f606165017
Time: 2021-02-10
Author: ionesiojr@gmail.com
File Name: apps/domain/tests/test_core/test_services/test_user_service.py
Class Name:
Method Name: test_create_user_without_email
Project Name: OpenMined/Grid
Commit Name: f40a6bbeb7c2616de351f2d0fcb927f606165017
Time: 2021-02-10
Author: ionesiojr@gmail.com
File Name: apps/domain/tests/test_core/test_services/test_user_service.py
Class Name:
Method Name: test_create_user_without_password