Skip to content

Commit

Permalink
fix: test_form.py the mock object needed its values changed to float
Browse files Browse the repository at this point in the history
  • Loading branch information
Endlessflow committed Sep 9, 2024
1 parent 1c914b9 commit bed5896
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ def test_valid_fertiliser_form(self):
"fertiliser_name": "Super Fertiliser",
"npk": "10-5-5",
"instructions_en": ["Use as directed"],
"micronutrients_en": [{"nutrient": "Iron", "value": "2", "unit": "%"}],
"specifications_en": [{"humidity": "23", "ph": "7", "solubility": "4"}],
"guaranteed_analysis": [{"nutrient": "Nitrogen", "value": "10", "unit": "%"}]
"micronutrients_en": [{"nutrient": "Iron", "value": 2.0, "unit": "%"}],
"specifications_en": [{"humidity": 23.0, "ph": 7.0, "solubility": 4.0}],
"guaranteed_analysis": [{"nutrient": "Nitrogen", "value": 10.0, "unit": "%"}]
}

try:
Expand Down

0 comments on commit bed5896

Please sign in to comment.