MCPcopy Create free account
hub / github.com/alphagov/notifications-api / create_code

Function create_code

tests/app/conftest.py:134–137  ·  view source on GitHub ↗
(notify_db_session, code_type)

Source from the content-addressed store, hash-verified

132def create_code(notify_db_session, code_type):
133 code = create_secret_code()
134 usr = create_user()
135 return create_user_code(usr, code, code_type), code
136
137
138@pytest.fixture(scope="function")
139def sample_sms_code(notify_db_session):
140 code, txt_code = create_code(notify_db_session, code_type="sms")

Callers 1

sample_sms_codeFunction · 0.85

Calls 3

create_secret_codeFunction · 0.90
create_userFunction · 0.90
create_user_codeFunction · 0.90

Tested by

no test coverage detected