mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-04 02:11:11 -05:00
Change Organisation DAO update method
- Changed the organisation DAO update method to only make 1 query - Updated the update rest endpoint to not return an organisation when the update is successful
This commit is contained in:
@@ -45,7 +45,7 @@ def test_update_organisation(notify_db, notify_db_session):
|
||||
assert len(organisation) == 1
|
||||
assert organisation[0].name != updated_name
|
||||
|
||||
dao_update_organisation(organisation[0], name=updated_name)
|
||||
dao_update_organisation(organisation[0].id, **{'name': updated_name})
|
||||
|
||||
organisation = Organisation.query.all()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user