Skip to content

Commit

Permalink
test: Add test for additional_closed_codelist_values codelist_url
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Dec 6, 2023
1 parent 7a652bd commit bc87d7d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ def test_codelist_url_extension_codelists(client):
resp = client.get(data.get_absolute_url())

assert resp.status_code == 200
assert len(resp.context["additional_closed_codelist_values"]) == 2
assert (
resp.context["additional_closed_codelist_values"]["projects/status"]["codelist_url"]
== "https://standard.open-contracting.org/infrastructure/latest/en/reference/codelists/#projectstatus"
)
assert (
resp.context["additional_closed_codelist_values"]["projects/type"]["codelist_url"]
== "https://standard.open-contracting.org/infrastructure/latest/en/reference/codelists/#projecttype"
)
assert len(resp.context["additional_open_codelist_values"]) == 1
assert (
resp.context["additional_open_codelist_values"]["projects/sector"]["codelist_url"]
Expand Down

0 comments on commit bc87d7d

Please sign in to comment.