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

Function sample_api_key

tests/app/conftest.py:370–375  ·  view source on GitHub ↗
(notify_db_session)

Source from the content-addressed store, hash-verified

368def sample_api_key(notify_db_session):
369 service = create_service(check_if_service_exists=True)
370 data = {"service": service, "name": uuid.uuid4(), "created_by": service.created_by, "key_type": KEY_TYPE_NORMAL}
371 api_key = ApiKey(**data)
372 save_model_api_key(api_key)
373 return api_key
374
375
376@pytest.fixture(scope="function")
377def sample_test_api_key(sample_api_key):
378 service = create_service(check_if_service_exists=True)

Callers

nothing calls this directly

Calls 3

create_serviceFunction · 0.90
ApiKeyClass · 0.90
save_model_api_keyFunction · 0.90

Tested by

no test coverage detected