public inbox for [email protected]  
help / color / mirror / Atom feed
From: Nikhil Mohite <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin]: Fix for kerberos test cases.
Date: Tue, 19 Jan 2021 12:30:37 +0530
Message-ID: <CAOBg0ANYAU5cn4G0Bj_pH1wyQ66Y-=Ry7LT-kjjmXjh_Yit2pA@mail.gmail.com> (raw)

Hi Team,

Please find the patch to fix the failing test cases.


-- 
*Thanks & Regards,*
*Nikhil Mohite*
*Software Engineer.*
*EDB Postgres* <https://www.enterprisedb.com/;
*Mob.No: +91-7798364578.*


Attachments:

  [application/octet-stream] test_case_fix.patch (889B, 3-test_case_fix.patch)
  download | inline diff:
diff --git a/web/pgadmin/browser/tests/test_kerberos_with_mocking.py b/web/pgadmin/browser/tests/test_kerberos_with_mocking.py
index f87ce552..0acc71c9 100644
--- a/web/pgadmin/browser/tests/test_kerberos_with_mocking.py
+++ b/web/pgadmin/browser/tests/test_kerberos_with_mocking.py
@@ -91,7 +91,7 @@ class KerberosLoginMockTestCase(BaseTestGenerator):
 
     def tearDown(self):
         self.app.PGADMIN_EXTERNAL_AUTH_SOURCE = 'ldap'
-        self.tester.logout()
+        # self.tester.logout()
 
     @classmethod
     def tearDownClass(cls):
@@ -99,6 +99,6 @@ class KerberosLoginMockTestCase(BaseTestGenerator):
         We need to again login the test client as soon as test scenarios
         finishes.
         """
-        cls.tester.logout()
+        # cls.tester.logout()
         app_config.AUTHENTICATION_SOURCES = ['internal']
         utils.login_tester_account(cls.tester)


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]: Fix for kerberos test cases.
  In-Reply-To: <CAOBg0ANYAU5cn4G0Bj_pH1wyQ66Y-=Ry7LT-kjjmXjh_Yit2pA@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