mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Organisation billing details visible on organisation settings page
This commit is contained in:
@@ -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',
|
||||
13
tests/app/models/test_organisation.py
Normal file
13
tests/app/models/test_organisation.py
Normal 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
|
||||
Reference in New Issue
Block a user