mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
Set Notify service user as the creator of Pre-compiled PDF template
This commit is contained in:
@@ -102,6 +102,14 @@ def sample_user(notify_db_session):
|
||||
return create_user()
|
||||
|
||||
|
||||
@pytest.fixture(scope='function')
|
||||
def notify_user(notify_db_session):
|
||||
return create_user(
|
||||
email="notify-service-user@digital.cabinet-office.gov.uk",
|
||||
id_=current_app.config['NOTIFY_USER_ID']
|
||||
)
|
||||
|
||||
|
||||
def create_code(notify_db, notify_db_session, code_type, usr=None, code=None):
|
||||
if code is None:
|
||||
code = create_secret_code()
|
||||
|
||||
@@ -45,9 +45,9 @@ from app.dao.email_branding_dao import dao_create_email_branding
|
||||
from app.dao.organisation_dao import dao_create_organisation
|
||||
|
||||
|
||||
def create_user(mobile_number="+447700900986", email="notify@digital.cabinet-office.gov.uk", state='active'):
|
||||
def create_user(mobile_number="+447700900986", email="notify@digital.cabinet-office.gov.uk", state='active', id_=None):
|
||||
data = {
|
||||
'id': uuid.uuid4(),
|
||||
'id': id_ or uuid.uuid4(),
|
||||
'name': 'Test User',
|
||||
'email_address': email,
|
||||
'password': 'password',
|
||||
|
||||
Reference in New Issue
Block a user