This repository was archived by the owner on Aug 25, 2024. It is now read-only.
File tree 3 files changed +5
-5
lines changed 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -104,4 +104,4 @@ async def test_string_keys(self):
104
104
self .assertIn ("Salary" , results ["prediction" ])
105
105
results = results ["prediction" ]["Salary" ]
106
106
self .assertIn ("value" , results )
107
- self .assertEqual (70.0 , results ["value" ])
107
+ self .assertEqual (70 , round ( results ["value" ]) )
Original file line number Diff line number Diff line change @@ -130,8 +130,8 @@ async def test_predict(self):
130
130
predictions = [
131
131
prediction async for prediction in predict (model , predict_data )
132
132
]
133
- self .assertEqual (predictions [0 ][2 ]["Salary" ]["value" ], 70 )
134
- self .assertEqual (predictions [1 ][2 ]["Salary" ]["value" ], 80 )
133
+ self .assertEqual (round ( predictions [0 ][2 ]["Salary" ]["value" ]) , 70 )
134
+ self .assertEqual (round ( predictions [1 ][2 ]["Salary" ]["value" ]) , 80 )
135
135
136
136
137
137
class TestDataFlow (TestOrchestrator ):
Original file line number Diff line number Diff line change @@ -70,5 +70,5 @@ def test_predict(self):
70
70
predictions = [
71
71
prediction for prediction in predict (model , predict_data )
72
72
]
73
- self .assertEqual (predictions [0 ][2 ]["Salary" ]["value" ], 70 )
74
- self .assertEqual (predictions [1 ][2 ]["Salary" ]["value" ], 80 )
73
+ self .assertEqual (round ( predictions [0 ][2 ]["Salary" ]["value" ]) , 70 )
74
+ self .assertEqual (round ( predictions [1 ][2 ]["Salary" ]["value" ]) , 80 )
You can’t perform that action at this time.
0 commit comments