Update the free allowance when the organisation type is changed.

The free allowance affect the number of free text messages a services get per yer.
This allowance is being set properly when an organisation is created by not updated.
This PR updates the free allowance when the organisation type is updated.
The free allowance can also be changed if service has an exceptional free allowance.
This commit is contained in:
Rebecca Law
2018-03-02 10:48:59 +00:00
parent 68fc6b5cb4
commit fa0196bc88
2 changed files with 7 additions and 0 deletions

View File

@@ -1560,6 +1560,7 @@ def test_should_set_organisation_type(
logged_in_platform_admin_client,
mock_update_service,
organisation_type,
mock_create_or_update_free_sms_fragment_limit
):
response = logged_in_platform_admin_client.post(
url_for(