Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1XDK-0004iH-VK for pgadmin-hackers@arkaria.postgresql.org; Thu, 29 Mar 2018 13:03:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f1XDJ-0006bt-Rv for pgadmin-hackers@arkaria.postgresql.org; Thu, 29 Mar 2018 13:03:33 +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.89) (envelope-from ) id 1f1XDJ-0006bj-IX for pgadmin-hackers@lists.postgresql.org; Thu, 29 Mar 2018 13:03:33 +0000 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f1XDB-0004nH-Jc for pgadmin-hackers@postgresql.org; Thu, 29 Mar 2018 13:03:33 +0000 Received: by mail-wm0-x231.google.com with SMTP id l9so10714314wmh.2 for ; Thu, 29 Mar 2018 06:03:25 -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=XVOKJ22vAwUb4//1mWhZXuZh4xmzcFmdCbSQUjkL2cw=; b=m8k+aYDUI34vDYOXrufjMPBw3B7zhqraFhDtbPWT4VidsY2gU6gLXEs0OFE1Err27Y pKL6n3fbUOdwu3SNtcrl7rzbNKZMlyg8Fxem4crIhYrKlKjL3nWA1/ZO2nNG3xw//MOp x5Xvihxv+s5THEzMyGYLFCiBAt1Y2cjP8lI404GgYo3Z4nKiHMwXZ4RVNwhx4fu3n2x0 /NZlk8OUTlXnZGDAm0ajZHT0d3PA7aDhj+oioTC1jTRF30dX5vTBpCVvEjWhl9rJzarS kqhl6ksqqpM6BiQSfCDrLPvtbM+LgVrXLf28TA02UzFyfO3s/MiNbGIagPJge60l3oaG B+uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XVOKJ22vAwUb4//1mWhZXuZh4xmzcFmdCbSQUjkL2cw=; b=fNHpHuDGwYLxNyoR6CDnCGrsIqnHPzkGxpSknKt+Jo/H3k9E6OqTyBeI2AxfzyPRcu JDkt1AFi3NKwmeb4yZbqpCR4xhNiCADh0mgri/YhX7lJsAgPRsXXgvAep0dEmrYsng81 hKZcAkCUkEhcjPWTjaDA68LihDCzovIE1JEOo+4fGPLOhOZHDHA6eoGIS9tCdx9ysXSP +KqV+ujmujNmryV+Kszx0I8J4pafywqEtlAf3nG2clwftVYft8KvHIrPEtPGZXXSCDBR Rx/shHjdeBYiwSS+mMPmSn9LjaE1DnxkGRJbkBHhN5YFcTDITa4EiBRhVxaGfbHTckh2 86Dw== X-Gm-Message-State: AElRT7FIHiD1xzuDEoKN5zyj8llYsa58PbhpYDPlao2byEtjfcXm9jGB EjQXCjv3KaV5yvkOodpkPH8tKFeaOKXYCiWFTb/AEA== X-Google-Smtp-Source: AIpwx4/86dicoZk6vE1GCPcrKTnkGhCBPJeaSMKkY+hweGLpid5tQkOrkRj/ym50RYTCJArOZBuzStm1Lj0rxvETVbE= X-Received: by 10.28.45.9 with SMTP id t9mr5641518wmt.161.1522328604560; Thu, 29 Mar 2018 06:03:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.69.220 with HTTP; Thu, 29 Mar 2018 06:03:24 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Thu, 29 Mar 2018 14:03:24 +0100 Message-ID: Subject: Re: Bug #3083 fix To: Joao De Almeida Pereira Cc: Akshay Joshi , Neethu Mariya Joy , pgadmin-hackers Content-Type: multipart/alternative; boundary="001a114248a0b4e59f05688cbf0e" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --001a114248a0b4e59f05688cbf0e Content-Type: text/plain; charset="UTF-8" Hi On Wed, Mar 28, 2018 at 7:06 PM, Joao De Almeida Pereira < jdealmeidapereira@pivotal.io> wrote: > Hey Akshay and Neethu > > We refactored the patch to add tests for the resize feature. We were able > to write test cases for the drag event by using spies and setting the rect > dimensions. In cases like this, we can just test some components in order > to have enough confidence in the code. So we isolated the function that > implements the behavior of this feature and tested that it was performing > as expected. > > We ran the patch through the pipelines and all of the tests passed. > I'm consistently seeing the feature test failure below with this patch applied: ====================================================================== FAIL: runTest (pgadmin.feature_tests.view_data_dml_queries.CheckForViewDataTest) Validate Insert, Update operations in View/Edit data with given test data ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/dpage/git/pgadmin4/web/pgadmin/feature_tests/view_data_dml_queries.py", line 125, in runTest self._verify_row_data(True) File "/Users/dpage/git/pgadmin4/web/pgadmin/feature_tests/view_data_dml_queries.py", line 325, in _verify_row_data self.assertEquals(cells[idx], config_data[str(idx)][1]) AssertionError: u'[null]' != u'1' - [null] + 1 -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --001a114248a0b4e59f05688cbf0e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

On Wed, Mar 28, 2018 at 7:06 PM, Joao De Almeida Pereira <jdealmeidapereira@pivotal.io> wrote:
Hey Akshay and Neethu
We refactored the patch to add tests for the resize feature.= =C2=A0 We were able to write test cases for the drag event by using spies a= nd setting the rect dimensions.=C2=A0 In cases like this, we can just test = some components in order to have enough confidence in the code.=C2=A0 So we= isolated the function that implements the behavior of this feature and tes= ted that it was performing as expected.

We ran the= patch through the pipelines and all of the tests passed.

I'm consistently seeing the feature test fai= lure below with this patch applied:

=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=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
FAIL: runTest= (pgadmin.feature_tests.view_data_dml_queries.CheckForViewDataTest)
Validate Insert, Update operations in View/Edit data with given test dat= a
---------------------------------------------------------------= -------
Traceback (most recent call last):
=C2=A0 File = "/Users/dpage/git/pgadmin4/web/pgadmin/feature_tests/view_data_dml_que= ries.py", line 125, in runTest
=C2=A0 =C2=A0 self._verify_ro= w_data(True)
=C2=A0 File "/Users/dpage/git/pgadmin4/web/pgad= min/feature_tests/view_data_dml_queries.py", line 325, in _verify_row_= data
=C2=A0 =C2=A0 self.assertEquals(cells[idx], config_data[str(= idx)][1])
AssertionError: u'[null]' !=3D u'1'
- [null]
+ 1


<= /div>--
--001a114248a0b4e59f05688cbf0e--