Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSjaK-0004YQ-RX for pgadmin-hackers@arkaria.postgresql.org; Tue, 12 Jun 2018 13:43:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fSjaH-0003x8-IU for pgadmin-hackers@arkaria.postgresql.org; Tue, 12 Jun 2018 13:43:41 +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.89) (envelope-from ) id 1fSjaG-0003wx-Ke for pgadmin-hackers@lists.postgresql.org; Tue, 12 Jun 2018 13:43:40 +0000 Received: from mx0a-00296801.pphosted.com ([148.163.150.38]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSja9-00016M-E9 for pgadmin-hackers@postgresql.org; Tue, 12 Jun 2018 13:43:36 +0000 Received: from pps.filterd (m0114582.ppops.net [127.0.0.1]) by mx0a-00296801.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5CDa0gT031484 for ; Tue, 12 Jun 2018 13:43:30 GMT Received: from mail-it0-f69.google.com (mail-it0-f69.google.com [209.85.214.69]) by mx0a-00296801.pphosted.com with ESMTP id 2jg5n530wk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 12 Jun 2018 13:43:30 +0000 Received: by mail-it0-f69.google.com with SMTP id k18-v6so12309136itb.0 for ; Tue, 12 Jun 2018 06:43:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+oM/hmPmKeZx5E0BOeJOQ+lnxZeU4WII2igQoQJb1DY=; b=XM/qyk5iIEUdFcArUiG1AFlmskGToFBaFRzPca7Hu82vbBKMyOPHWUM+1asep+QD2o I8NYcfVeC0pWRetf2hircQE2IAjQgDktYJcBuSfb+6XXcu3i/jNuCVGFjD3i6oIXaD6/ byzIjgJlzM1b4mF0A9Ovt5uj+uJx7rINRM5HF3RhyaTHQsBCloy7usL12c6UAwWsyNf4 ACJyfeJtqSTGbMOdLqIT4L81y2+KVLao4pPxEqI27bBUtmKC0VTeYfebM0MvtJJnEfhy lp1viSKc2OdmKxP/DrdyXjTBSMX2LNzREQVHxYc5FDsc5uE6ILpLO1ukz6+wObslxcF6 /1Mg== X-Gm-Message-State: APt69E0c0EHGE6utST0C2c8syW2pBAPUNkK9IisMR7wfnLYLN1fLMsZ3 JSd+eb+dQwdhF0DcSTsi6s64Fr2zV5sTUXA5wY/5Gv+uQBJ39YiUYUL+VxmGxPWwS+wZ6PXzFBZ EtfEv5YcFB8mlNTkIs/uUeecpDa3shflXOlUeSqJiSdaEaPHEDiJhON4RTKGItQfMvOT1 X-Received: by 2002:a24:90d:: with SMTP id 13-v6mr479479itm.69.1528811008471; Tue, 12 Jun 2018 06:43:28 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJaoHCMn9G9EgVQStF25cqC7BMvhTNnEbvlAcTWohV2SWhHqpPbdo1JUjSrGoNBI6Z5pv6Exp6etsT8VHgxLPc= X-Received: by 2002:a24:90d:: with SMTP id 13-v6mr479461itm.69.1528811008246; Tue, 12 Jun 2018 06:43:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Joao De Almeida Pereira Date: Tue, 12 Jun 2018 09:42:51 -0400 Message-ID: Subject: Re: [pgadmin4][Patch]: Support for create multiple test classes in one test file To: Akshay Joshi Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000136252056e720d37" X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-12_01:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=647 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806120157 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000136252056e720d37 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Hackers, Instead of doing this change and include more test harnessing to the setup we have, do you think we can try to push to get pytest into the code base and all these features will come by default? Thanks Joao =E2=80=8B On Tue, Jun 12, 2018 at 9:30 AM Akshay Joshi wrote: > Hi Hackers, > > Attached is the patch to create multiple test classes in one test file. > > For example: I have one test file *test_feature.py *where I wrote > multiple test classes > class TestX(BaseTestGenerator): > class TestY(BaseTestGenerator): > class TestZ(BaseTestGenerator): > > So with current implementation it will run the test cases for *TestZ* > class. > > -- > *Akshay Joshi* > > *Sr. Software Architect * > > > > *Phone: +91 20-3058-9517Mobile: +91 976-788-8246* > --000000000000136252056e720d37 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello Hackers,
Instead of doing this= change and include more test harnessing to the setup we have, do you think= we can try to push to get pytest into the code bas= e and all these features will come by default?

Thanks
Joao

=E2=80=8B

<= div dir=3D"ltr">On Tue, Jun 12, 2018 at 9:30 AM Akshay Joshi <akshay.joshi@enterprisedb.com>= ; wrote:
Hi Hacker= s,=C2=A0

Attached is the patch to create multiple test c= lasses in one test file.=C2=A0=C2=A0

For example: = I have one test file test_feature.py where I wrote multiple test cla= sses
=C2=A0 =C2=A0=C2=A0class TestX(BaseTestGenerator):=
=C2= =A0 class=C2=A0TestY= (BaseTestGenerator):
=C2=A0 class=C2=A0TestZ= (BaseTestGenerator):

So with current implementation it will run the test = cases for TestZ class.

--
Akshay Joshi
Sr. Software Architect
=

<= div>Phone: +91 20-305= 8-9517
Mobile: +91 976-788-8246
--000000000000136252056e720d37--