fix(test_api): Don't suppress debug query

This commit is contained in:
Gavin D'souza 2022-02-11 11:47:31 +05:30
parent ca113a7a09
commit ced22e30f0

View file

@ -145,8 +145,7 @@ class TestResourceAPI(FrappeAPITestCase):
def test_get_list_debug(self):
# test 5: fetch response with debug
with suppress_stdout():
response = self.get(f"/api/resource/{self.DOCTYPE}", {"sid": self.sid, "debug": True})
response = self.get(f"/api/resource/{self.DOCTYPE}", {"sid": self.sid, "debug": True})
self.assertEqual(response.status_code, 200)
self.assertIn("exc", response.json)
self.assertIsInstance(response.json["exc"], str)