Fixed API test cases.

This commit is contained in:
Akshay Joshi committed 2022-10-20 17:47:27 +05:30
1 parent db5e181b4f
commit 964c7b1d28
5 files changed
+17 -5

No files matched your search

@@ -114,7 +114,10 @@ class BatchProcessTest(BaseTestGenerator):
current_app.PGADMIN_RUNTIME = False
def db_session_add_mock(j):
cmd_obj = loads(j.desc)
try:
cmd_obj = loads(bytes.fromhex(j.desc))
except Exception:
cmd_obj = loads(j.desc)
self.assertTrue(isinstance(cmd_obj, IProcessDesc))
self.assertEqual(cmd_obj.bfile, self.params['filename'])