Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9pyQ-0001JM-Km for pgadmin-hackers@arkaria.postgresql.org; Mon, 06 Jun 2016 08:33:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b9pyP-0008IP-Gr for pgadmin-hackers@arkaria.postgresql.org; Mon, 06 Jun 2016 08:33:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b9pyP-0008II-0P for pgadmin-hackers@postgresql.org; Mon, 06 Jun 2016 08:33:25 +0000 Received: from mail-it0-x233.google.com ([2607:f8b0:4001:c0b::233]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b9pyH-0000Og-Kw for pgadmin-hackers@postgresql.org; Mon, 06 Jun 2016 08:33:23 +0000 Received: by mail-it0-x233.google.com with SMTP id f67so36813968ith.1 for ; Mon, 06 Jun 2016 01:33:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Vln0Y0+eX3TXW5zVIjKU84nGVr3ljji8iEsw+mHqz/s=; b=if+5nipqLcXSM0g9G43l44x1flK6p8G9Vcy4wJKfSMdu7cmg3+mg3MDQnZduDbD+bK Jk+DfFwcpMw+pCamP/Bc3wmmD31VoqJSErJCzThX9D7W4asFS8WHf+aNSrLZuNWUeARa YJ+emMo/YhZRhCh44ZgkIQIPUzu5S5zsCnTWvYU7hgST/2kyBgFWtbtPHiSDIQNW5HbM cFvo0k3lGaaj0gq1Zz7nTi2AP+fvltgVR140+aI9wTDdj7rbGhr6+sm/6cExaYV905g+ xBFg1dD2C8YWeKcdvanE+ZaDA/BG9MvOcduEnC69Je0kDtWJ7RcWu8NIWaS1Qxslpr5Z B9Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Vln0Y0+eX3TXW5zVIjKU84nGVr3ljji8iEsw+mHqz/s=; b=PZmXprS+gjMBg+XgBMW8wzJmehZE/HPbEX6eoNgTPB9n3aw2bcZ8GW/G6vELDN0L4+ 0fYuWffVVLp7hrr+XJgnguUC8Zzvk09jGtgNOR1BraqnhhFL9J17q3AfF2VGULa7dvKd yBZnHkskc27sEjCTz3GdslRJmh4rgDczzaLBrfH3vdDc42JZMHXgje84vKY+TDQNUomM uO28bT1hMoj5+x7ZG5SWXCu6U3c1rsmDeTk+vrWTyFqO7Ktz/NDa72H/4Glf7aNWWs7r NYmRcmZqcz0If2y5NB4YrJ+zMZ8qg0Z9khrZGK8NUyw0SwMmyiO3L8nSXFIn0Gceg3zv 0oqQ== X-Gm-Message-State: ALyK8tKhvE+HS3HMzhFWPMAYLk6D7JHZ6jAU3BenO6zBCUQfaXQw02G3MdCD3XwaO6KDXkOf1Yr9yDAxTsc4TQ== X-Received: by 10.36.1.144 with SMTP id 138mr13601630itk.35.1465201996172; Mon, 06 Jun 2016 01:33:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.24.233 with HTTP; Mon, 6 Jun 2016 01:33:15 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Mon, 6 Jun 2016 09:33:15 +0100 Message-ID: Subject: Re: pgAdmin IV API test cases patch To: Priyanka Shendge Cc: pgadmin-hackers , Kanchan Mohitey Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -1.9 (-) 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 Hi On Sun, Jun 5, 2016 at 6:56 PM, Priyanka Shendge wrote: > Hi, > > PFA patch for API test cases for tree nodes/modules. This patch does not > include > api tests for following modules: > > 1. Type > 2. Table child nodes > 3. FTS modules > > Kindly, review the same and let me know for any modification. I took a very quick look at the patch and immediately saw a serious problem I'm afraid - you cannot hard-code paths like this: + if os.path.isfile('/home/edb/Downloads/pgadmin4/web/regression/' + 'parent_id.pkl'): + exst_server_id = open('/home/edb/Downloads/pgadmin4/web' + '/regression/''parent_id.pkl', 'rb') You need to dynamically generate such paths so this will work on any machine. Look at line 19 of web/pgAdmin4.py to see how to get the patch to the current file as an example. Also; despite this not being part of the end-user interface, please try to follow the standards for messages, e.g. instead of: No event trigger(s) to update!!! use No event trigger(s) to update. There is likely more to change of course, but please fix these issues first. Thanks! -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers