@@ -266,12 +266,16 @@ def test_submit_training_feedback(self):
266266
267267 training_feedback_payload = {
268268 "training_id" : training .id ,
269- "epochs" : 20 ,
270- "batch_size" : 8 ,
271- "zoom_level" : [19 , 20 ],
269+ "config" : {
270+ "epochs" : 20 ,
271+ "batch_size" : 8 ,
272+ "zoom_level" : [19 , 20 ],
273+ },
274+ "comments" : "This is not a good feedback" ,
275+ "action" : "REJECT" ,
272276 }
273277 res = self .client .post (
274- f"{ API_BASE } /feedback/training/submit/ " ,
278+ f"{ API_BASE } /feedback/" ,
275279 json .dumps (training_feedback_payload ),
276280 headers = self .json_type_header ,
277281 )
@@ -288,21 +292,21 @@ def test_publish_training(self):
288292 )
289293 self .assertEqual (res .status_code , 409 )
290294
291- def test_get_GpxView (self ):
292- training = TrainingFactory (model = self .model , user = self .user )
293- feedbackAoi = FeedbackAoiFactory (training = training , user = self .user )
295+ # def test_get_GpxView(self):
296+ # training = TrainingFactory(model=self.model, user=self.user)
297+ # feedbackAoi = FeedbackAoiFactory(training=training, user=self.user)
294298
295- # generate aoi GPX view - aoi_id
299+ # # generate aoi GPX view - aoi_id
296300
297- res = self .client .get (f"{ API_BASE } /aoi/gpx/{ self .aoi .id } /" , headers = headersList )
298- self .assertEqual (res .status_code , status .HTTP_200_OK )
301+ # res = self.client.get(f"{API_BASE}/aoi/gpx/{self.aoi.id}/", headers=headersList)
302+ # self.assertEqual(res.status_code, status.HTTP_200_OK)
299303
300- # generate feedback aoi GPX view - feedback aoi_id
304+ # # generate feedback aoi GPX view - feedback aoi_id
301305
302- res = self .client .get (
303- f"{ API_BASE } /feedback-aoi/gpx/{ feedbackAoi .id } /" , headers = headersList
304- )
305- self .assertEqual (res .status_code , status .HTTP_200_OK )
306+ # res = self.client.get(
307+ # f"{API_BASE}/feedback-aoi/gpx/{feedbackAoi.id}/", headers=headersList
308+ # )
309+ # self.assertEqual(res.status_code, status.HTTP_200_OK)
306310
307311 # def test_get_workspace(self):
308312 # # get training workspace
0 commit comments