Skip to content

Commit

Permalink
Refactor remaining create tests #376
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvdavies committed Sep 16, 2024
1 parent 49ff691 commit 4692876
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 282 deletions.
19 changes: 19 additions & 0 deletions test/mock_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,25 @@
"allowed_values": None,
}

# Number, Non Mandatory, No unit

CATALOGUE_CATEGORY_PROPERTY_DATA_NUMBER_NON_MANDATORY = {
"name": "Non Mandatory Number Property",
"type": "number",
"mandatory": False,
}

CATALOGUE_CATEGORY_PROPERTY_IN_DATA_NUMBER_NON_MANDATORY = {
**CATALOGUE_CATEGORY_PROPERTY_DATA_NUMBER_NON_MANDATORY,
"unit_id": None,
}

CATALOGUE_CATEGORY_PROPERTY_GET_DATA_NUMBER_NON_MANDATORY = {
**CATALOGUE_CATEGORY_PROPERTY_DATA_NUMBER_NON_MANDATORY,
"id": ANY,
"allowed_values": None,
}

# Number, Non Mandatory, Allowed values list

CATALOGUE_CATEGORY_PROPERTY_DATA_NUMBER_NON_MANDATORY_WITH_ALLOWED_VALUES_LIST = {
Expand Down
Loading

0 comments on commit 4692876

Please sign in to comment.