f40a6bbeb7c2616de351f2d0fcb927f606165017,apps/domain/tests/test_core/test_services/test_user_service.py,,test_create_second_user_with_invalid_role_name,#Any#Any#Any#,156
Before Change
// Check message response
assert response.success == True
assert response.content == {"msg": "User created successfully!"}
// Check database
assert len(users) == 1
user = users.query(email="owner@gmail.com")[0]
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) == "Role ID not found!"
// Check database
assert len(users) == 1
def test_create_second_user_with_owner_role_name(database, domain, cleanup):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
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_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_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_user_without_password