mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-19 05:58:53 -04:00
Try using nested transactions to rollback
This commit is contained in:
@@ -233,6 +233,7 @@ def test_add_service_to_organisation(sample_service, sample_organisation):
|
||||
sample_organisation.crown = False
|
||||
|
||||
dao_add_service_to_organisation(sample_service, sample_organisation.id)
|
||||
db.session.commit()
|
||||
|
||||
assert len(sample_organisation.services) == 1
|
||||
assert sample_organisation.services[0].id == sample_service.id
|
||||
|
||||
Reference in New Issue
Block a user