Skip to content

Commit

Permalink
test(project_management): Ensure that project field completed exists …
Browse files Browse the repository at this point in the history
…when API v2 is rendere

ref: #401 fixes #327
  • Loading branch information
jon-nfc committed Nov 28, 2024
1 parent 545d417 commit 184f419
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions app/project_management/tests/unit/project/test_project_api_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,29 @@ def setUpTestData(self):



def test_api_field_exists_completed(self):
""" Test for existance of API Field
This test is a custom test of a test case with the same name.
this model does not have a model_notes_field
model_notes field must exist
"""

assert 'completed' in self.api_data



def test_api_field_type_completed(self):
""" Test for type for API Field
description field must be str
"""

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



def test_api_field_exists_model_notes(self):
""" Test for existance of API Field
Expand Down

0 comments on commit 184f419

Please sign in to comment.