public inbox for [email protected]  
help / color / mirror / Atom feed
From: Aditya Toshniwal <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin][patch] ERD API test case failing for PG13
Date: Mon, 22 Feb 2021 14:51:37 +0530
Message-ID: <CAM9w-_niqX4DyRrCbwRJFOuW8nM_0kPNmTwNO67G5FMunrdrFA@mail.gmail.com> (raw)

Hi Hackers,

Attached is the patch to fix the test case.

-- 
Thanks,
Aditya Toshniwal
pgAdmin hacker | Sr. Software Engineer | *edbpostgres.com*
<http://edbpostgres.com;
"Don't Complain about Heat, Plant a TREE"


Attachments:

  [application/octet-stream] ERD.apitestsql.patch (518B, 3-ERD.apitestsql.patch)
  download | inline diff:
diff --git a/web/pgadmin/tools/erd/tests/test_sql.py b/web/pgadmin/tools/erd/tests/test_sql.py
index 15276c1cd..bec6d763c 100644
--- a/web/pgadmin/tools/erd/tests/test_sql.py
+++ b/web/pgadmin/tools/erd/tests/test_sql.py
@@ -45,7 +45,7 @@ class ERDSql(BaseTestGenerator):
                 sql_base_path, version_mapping['name'])
 
             if not path.exists(complete_path):
-                complete_path = path.join(sql_base_path, 'default')
+                continue
             break
 
         data_sql = ''


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [pgAdmin][patch] ERD API test case failing for PG13
  In-Reply-To: <CAM9w-_niqX4DyRrCbwRJFOuW8nM_0kPNmTwNO67G5FMunrdrFA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox