Skip to content

Commit

Permalink
test(itim): Ensure external_links are returned as part of _urls
Browse files Browse the repository at this point in the history
ref: #450 #452
  • Loading branch information
jon-nfc committed Dec 24, 2024
1 parent 0db8361 commit 5952097
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/itim/tests/unit/cluster/test_cluster_api_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,3 +467,22 @@ def test_api_field_type_urls_tickets(self):
"""

assert type(self.api_data['_urls']['tickets']) is str



def test_api_field_exists_urls_external_links(self):
""" Test for existance of API Field
_urls.external_links field must exist
"""

assert 'external_links' in self.api_data['_urls']


def test_api_field_type_urls_external_links(self):
""" Test for type for API Field
_urls.external_links field must be str
"""

assert type(self.api_data['_urls']['external_links']) is str

0 comments on commit 5952097

Please sign in to comment.