From f09bcf5ed98a9f87bc38ea2b9d4b0339491a600d Mon Sep 17 00:00:00 2001 From: Ken Tsang Date: Tue, 13 Feb 2018 16:38:35 +0000 Subject: [PATCH] Refactored organisation dao test --- tests/app/dao/test_organisation_dao.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/app/dao/test_organisation_dao.py b/tests/app/dao/test_organisation_dao.py index ce1256c62..04059cdf4 100644 --- a/tests/app/dao/test_organisation_dao.py +++ b/tests/app/dao/test_organisation_dao.py @@ -58,9 +58,12 @@ def test_update_organisation(notify_db, notify_db_session): def test_add_service_to_organisation(notify_db, notify_db_session, sample_service, sample_organisation): + assert sample_organisation.services == [] + dao_add_service_to_organisation(sample_service, sample_organisation.id) assert len(sample_organisation.services) == 1 + assert sample_organisation.services[0].id == sample_service.id def test_add_service_to_multiple_organisation_raises_error(