Organisation billing details visible on organisation settings page

This commit is contained in:
Pea Tyczynska
2021-02-05 10:57:46 +00:00
parent f0d94a009e
commit 56b777872e
5 changed files with 45 additions and 0 deletions

View File

@@ -691,6 +691,7 @@ def test_organisation_settings_for_platform_admin(
'Crown organisation Yes Change',
'Data sharing and financial agreement Not signed Change',
'Request to go live notes None Change',
'Billing details No billing details yet Change billing details for the organisation',
'Notes No notes yet Change the notes for the organisation',
'Default email branding GOV.UK Change',
'Default letter branding No branding Change',

View File

@@ -0,0 +1,13 @@
import pytest
from app.models.organisation import Organisation
from tests import organisation_json
@pytest.mark.parametrize("purchase_order_number,expected_result", [
[None, None],
["PO1234", [None, None, None, "PO1234"]]
])
def test_organisation_billing_details(purchase_order_number, expected_result):
organisation = Organisation(organisation_json(purchase_order_number=purchase_order_number))
assert organisation.billing_details == expected_result