Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cYQxM-0005uc-NE for pgadmin-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 05:26:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cYQxM-0001LR-5M for pgadmin-hackers@arkaria.postgresql.org; Tue, 31 Jan 2017 05:26:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cYQxL-0001LK-MA for pgadmin-hackers@postgresql.org; Tue, 31 Jan 2017 05:26:15 +0000 Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cYQxH-0002Px-9k for pgadmin-hackers@postgresql.org; Tue, 31 Jan 2017 05:26:15 +0000 Received: by mail-oi0-x22c.google.com with SMTP id u143so208177334oif.3 for ; Mon, 30 Jan 2017 21:26:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=3y8KIh5DbYgwFrMpITeol6niohLAApMwYn15J/zm6AM=; b=StWUz0JwJ+HfRzecxDN3V77SykFx+FReLflcFoKfw8Ogulsids4w3j/kT3UzqWRu33 jtqGyCv6qfgtR3uJee7/9hdo8vgZ6Hy3QNmtwNEFJAI0yEdZKYPS56jeXe01gKYWiPwP jbSXgKrTzVtFWWoEl1RZguRfAA7yqb+mxrQf3VNxP5FGyAadX4LzMlXsgWv/h+Y+wDhw yvDhmOuLqxbSo47cucUUNdm91ievFczk6NSXCIYXvDaRQP758PDOvjuLVH8WgGR+yQGS iv/qhYqxnCgm4qH0oHCAE52Opyq5Gjg04EPvjKntR9H5i4P93TrADCoDMFmJGhuJE65T 07HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3y8KIh5DbYgwFrMpITeol6niohLAApMwYn15J/zm6AM=; b=cGxCakzfIfnHRf/KZYJF/+sQEAMvG4TBmR/tbLjij6gucgavPlYhV8M6K50eLj1gST AEtYKKi/I9vhVMN0icdcmssZt9Y0K/5LMA4vIRby7pCOqkcq/cWo3TVKs5h68XOQVAn7 z2JOpFvPInDQRdNqYaHpB7qtcaEZYU6uam6VXQTeRN7SIu+GzWIbvWbFyUg7PnRkY9cC IoTFrBk3PLDSXZ2schn7oS0wc7dvPWWRiB2BPX2CD1dca8tUWLjxv5rT4CKiSGo5QAGO BxHbR4/3nwzRvBrHzeS07zEae5pFK7AHBPf9FDB41G80lUL1Ck3g00l40f4RpZI4KDgk S0WA== X-Gm-Message-State: AIkVDXIgWWgz1PcFbj68HNBpidSfDi0t58VKyXz3ItLtVUnwSHuhtGWo3SExFuLEnLJXRlJVZtsoHOmK9gDB1yl8 X-Received: by 10.202.184.87 with SMTP id i84mr14968762oif.130.1485840369277; Mon, 30 Jan 2017 21:26:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.183.26.2 with HTTP; Mon, 30 Jan 2017 21:25:47 -0800 (PST) From: Murtuza Zabuawala Date: Tue, 31 Jan 2017 10:55:47 +0530 Message-ID: Subject: [pgAdmin4][Patch] Minor fix in test file for the Template loader To: pgadmin-hackers Content-Type: multipart/mixed; boundary=001a113cd22067901f05475d2bac X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --001a113cd22067901f05475d2bac Content-Type: multipart/alternative; boundary=001a113cd22067901905475d2baa --001a113cd22067901905475d2baa Content-Type: text/plain; charset=UTF-8 Hi, PFA patch to fix the issue in test suite for template loader. *Issue(Python3):* murtuza@vm:~/pgadmin4/web/regression$ python3 runtests.py pgAdmin 4 - Application Initialisation ====================================== The configuration database - '/../.pgadmin/test_pgadmin4.db' does not exist. Entering initial setup mode... NOTE: Configuring authentication for SERVER mode. The configuration database has been created at /../.pgadmin/test_pgadmin4.db Traceback (most recent call last): File "runtests.py", line 250, in test_module_list = get_test_modules(args) File "runtests.py", line 138, in get_test_modules TestsGeneratorRegistry.load_generators('pgadmin') File "../../pgadmin4/web/pgadmin/utils/route.py", line 66, in load_generators import_module(module_name) File "/../../3.5/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 673, in _load_unlocked File "", line 658, in exec_module File "", line 764, in get_code File "", line 724, in source_to_code File "", line 222, in _call_with_frames_removed File "/../../pgadmin4/web/pgadmin/utils/tests/test_versioned_template_loader.py", line 50 except TemplateNotFound, e: ^ SyntaxError: invalid syntax -- Regards, Murtuza Zabuawala EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --001a113cd22067901905475d2baa Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

PFA patch to fix the issue in test = suite for template loader.

Issue(Python3):<= /div>
murtuza@vm:~/pgadmin4/web/regression$ python3 runtests.py=C2= =A0
pgAdmin 4 - Application Initialisation
=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D


The con= figuration database - '/../.pgadmin/test_pgadmin4.db' does not exis= t.
Entering initial setup mode...
NOTE: Configuring aut= hentication for SERVER mode.


The co= nfiguration database has been created at /../.pgadmin/test_pgadmin4.db
Traceback (most recent call last):
=C2=A0 File "runtes= ts.py", line 250, in <module>
=C2=A0 =C2=A0 test_modul= e_list =3D get_test_modules(args)
=C2=A0 File "runtests.py&q= uot;, line 138, in get_test_modules
=C2=A0 =C2=A0 TestsGeneratorR= egistry.load_generators('pgadmin')
=C2=A0 File "../.= ./pgadmin4/web/pgadmin/utils/route.py", line 66, in load_generators
=C2=A0 =C2=A0 import_module(module_name)
=C2=A0 File &quo= t;/../../3.5/lib/python3.5/importlib/__init__.py", line 126, in import= _module
=C2=A0 =C2=A0 return _bootstrap._gcd_import(name[level:],= package, level)
=C2=A0 File "<frozen importlib._bootstra= p>", line 986, in _gcd_import
=C2=A0 File "<froze= n importlib._bootstrap>", line 969, in _find_and_load
=C2= =A0 File "<frozen importlib._bootstrap>", line 958, in _fin= d_and_load_unlocked
=C2=A0 File "<frozen importlib._boots= trap>", line 673, in _load_unlocked
=C2=A0 File "<= ;frozen importlib._bootstrap_external>", line 658, in exec_module
=C2=A0 File "<frozen importlib._bootstrap_external>&quo= t;, line 764, in get_code
=C2=A0 File "<frozen importlib.= _bootstrap_external>", line 724, in source_to_code
=C2=A0= File "<frozen importlib._bootstrap>", line 222, in _call_w= ith_frames_removed
=C2=A0 File "/../../pgadmin4/web/pgadmin/= utils/tests/test_versioned_template_loader.py", line 50
=C2= =A0 =C2=A0 except TemplateNotFound, e:
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^<= /div>
SyntaxError: invalid syntax

--
<= font color=3D"#888888">Murtuza Zabuawala
EnterpriseDB:=C2=A0<= a href=3D"http://www.enterprisedb.com/" rel=3D"noreferrer" style=3D"color:r= gb(17,85,204)" target=3D"_blank">http://www.enterprisedb.com
The Ente= rprise PostgreSQL Company
--001a113cd22067901905475d2baa-- --001a113cd22067901f05475d2bac Content-Type: application/octet-stream; name="Fix_template_loader_test.patch" Content-Disposition: attachment; filename="Fix_template_loader_test.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_iyl2ydc00 ZGlmZiAtLWdpdCBhL3dlYi9wZ2FkbWluL3V0aWxzL3Rlc3RzL3Rlc3RfdmVy c2lvbmVkX3RlbXBsYXRlX2xvYWRlci5weSBiL3dlYi9wZ2FkbWluL3V0aWxz L3Rlc3RzL3Rlc3RfdmVyc2lvbmVkX3RlbXBsYXRlX2xvYWRlci5weQppbmRl eCAzMTE3YzMzLi5iMmY1YzRjIDEwMDY0NAotLS0gYS93ZWIvcGdhZG1pbi91 dGlscy90ZXN0cy90ZXN0X3ZlcnNpb25lZF90ZW1wbGF0ZV9sb2FkZXIucHkK KysrIGIvd2ViL3BnYWRtaW4vdXRpbHMvdGVzdHMvdGVzdF92ZXJzaW9uZWRf dGVtcGxhdGVfbG9hZGVyLnB5CkBAIC00Nyw5ICs0NywxMCBAQCBjbGFzcyBU ZXN0VmVyc2lvbmVkVGVtcGxhdGVMb2FkZXIoQmFzZVRlc3RHZW5lcmF0b3Ip OgogICAgICAgICB0cnk6CiAgICAgICAgICAgICBzZWxmLmxvYWRlci5nZXRf c291cmNlKE5vbmUsICJzb21lX2ZlYXR1cmUvc3FsLyMxMDEwMCMvc29tZV9h Y3Rpb24uc3FsIikKICAgICAgICAgICAgIHNlbGYuZmFpbCgiTm8gZXhjZXB0 aW9uIHJhaXNlZCIpCi0gICAgICAgIGV4Y2VwdCBUZW1wbGF0ZU5vdEZvdW5k LCBlOgorICAgICAgICBleGNlcHQgVGVtcGxhdGVOb3RGb3VuZDoKICAgICAg ICAgICAgIHJldHVybgogCisKIGNsYXNzIEZha2VBcHAoRmxhc2spOgogICAg IGRlZiBfX2luaXRfXyhzZWxmKToKICAgICAgICAgc3VwZXIoRmFrZUFwcCwg c2VsZikuX19pbml0X18oIiIpCg== --001a113cd22067901f05475d2bac Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers --001a113cd22067901f05475d2bac--