def before(self):
        with test_utils.Database(self.server) as (connection, _):
            if connection.server_version < 90100:
                self.skipTest(
                    "Membership is not present in Postgres below PG v9.1")

        # Some test function is needed for debugger
        test_utils.create_role(self.server, "postgres", "test_role")
        test_utils.create_role(self.server, "postgres", "<h1>test</h1>")
    def before(self):
        with test_utils.Database(self.server) as (connection, _):
            if connection.server_version < 90100:
                self.skipTest(
                    "Membership is not present in Postgres below PG v9.1")

        # Some test function is needed for debugger
        test_utils.create_role(self.server, "postgres",
                               "test_role")
        test_utils.create_role(self.server, "postgres",
                               "<h1>test</h1>")
    def before(self):
        with test_utils.Database(self.server) as (connection, _):
            if connection.server_version < 90100:
                self.skipTest(
                    "Membership is not present in Postgres below PG v9.1")

        # create role
        self.role = "test_role" + str(random.randint(10000, 65535))

        # Some test function is needed for debugger
        test_utils.create_role(self.server, "postgres", self.role)
        test_utils.create_role(self.server, "postgres", "<h1>test</h1>")
        self.wait = WebDriverWait(self.page.driver, 20)
Exemple #4
0
 def before(self):
     # Some test function is needed for debugger
     test_utils.create_role(self.server, "postgres", "test_role")
     test_utils.create_role(self.server, "postgres", "<h1>test</h1>")