mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-07 18:28:25 -04:00
Refactor "create_user" to actually create a user
This switches a number of fixtures to use "sample_user", which is equivalent to calling the previous "create_user" function when it used to default the email to "notify@...".
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import uuid
|
||||
|
||||
from app.commands import local_dev_broadcast_permissions
|
||||
from app.dao.services_dao import dao_add_user_to_service
|
||||
from tests.app.db import create_user
|
||||
@@ -10,8 +8,7 @@ def test_local_dev_broadcast_permissions(
|
||||
sample_broadcast_service,
|
||||
notify_api,
|
||||
):
|
||||
# create_user will pull existing unless email is unique
|
||||
user = create_user(email=f'{uuid.uuid4()}@example.com')
|
||||
user = create_user()
|
||||
dao_add_user_to_service(sample_service, user)
|
||||
dao_add_user_to_service(sample_broadcast_service, user)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user