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

@@ -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