mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 09:26:08 -05:00
Add organisations model and create dao
This commit is contained in:
14
tests/app/dao/test_organisations_dao.py
Normal file
14
tests/app/dao/test_organisations_dao.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import pytest
|
||||
|
||||
from app.dao.organisations_dao import dao_create_organisation
|
||||
from app.models import Organisation
|
||||
|
||||
from tests.app.db import create_organisation
|
||||
|
||||
|
||||
def test_create_organisation(notify_db, notify_db_session):
|
||||
organisation = create_organisation()
|
||||
|
||||
assert Organisation.query.count() == 1
|
||||
organisation_from_db = Organisation.query.first()
|
||||
assert organisation == organisation_from_db
|
||||
Reference in New Issue
Block a user