Skip to content

Commit a73d01f

Browse files
committed
[tests] Updated failing api test cases in connection
As we are now restricting the choices at serializer level, the checks in api test cases required a small change to handle this. Signed-off-by: DragnEmperor <dragnemperor@gmail.com>
1 parent 5508809 commit a73d01f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openwisp_controller/connection/tests/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ def test_non_existent_command(self):
338338
)
339339
self.assertEqual(response.status_code, 400)
340340
self.assertIn(
341-
'"custom" command is not available for this organization',
342-
response.data['input'][0],
341+
'"custom" is not a valid choice.',
342+
json.loads(response.content)['type'][0],
343343
)
344344

345345

0 commit comments

Comments
 (0)