mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
Organisation service DAO
This commit is contained in:
@@ -17,6 +17,7 @@ from app.models import (
|
||||
TemplateHistory,
|
||||
ApiKey,
|
||||
Job,
|
||||
Organisation,
|
||||
Notification,
|
||||
NotificationHistory,
|
||||
InvitedUser,
|
||||
@@ -40,6 +41,7 @@ from app.models import (
|
||||
ServiceEmailReplyTo
|
||||
)
|
||||
from app.dao.users_dao import (create_user_code, create_secret_code)
|
||||
from app.dao.organisation_dao import dao_create_organisation
|
||||
from app.dao.services_dao import (dao_create_service, dao_add_user_to_service)
|
||||
from app.dao.templates_dao import dao_create_template
|
||||
from app.dao.api_key_dao import save_model_api_key
|
||||
@@ -1044,6 +1046,13 @@ def sample_inbound_numbers(notify_db, notify_db_session, sample_service):
|
||||
return inbound_numbers
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sample_organisation(notify_db, notify_db_session):
|
||||
org = Organisation(name='sample organisation')
|
||||
dao_create_organisation(org)
|
||||
return org
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def restore_provider_details(notify_db, notify_db_session):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user