def setUp(self):
        super(ExclusiveMethodsSingle, self).setUp()

        klass = DriverFactory.get_driver_class("redis_single")
        self.driver = klass(databaseinfra=self.databaseinfra)

        self.instance = self.driver.databaseinfra.instances.first()
Example #2
0
    def setUp(self):
        super(ExclusiveMethodsSingle, self).setUp()

        klass = DriverFactory.get_driver_class("redis_single")
        self.driver = klass(databaseinfra=self.databaseinfra)

        self.instance = self.driver.databaseinfra.instances.first()
Example #3
0
 def test_redis_app_installed(self):
     self.assertTrue(DriverFactory.is_driver_available("redis_single"))
     self.assertTrue(DriverFactory.is_driver_available("redis_sentinel"))
Example #4
0
    def setUp(self):
        super(ExclusiveMethodsSentinel, self).setUp()

        klass = DriverFactory.get_driver_class("redis_sentinel")
        self.driver = klass(databaseinfra=self.databaseinfra)
 def test_mysqldb_app_installed(self):
     self.assertTrue(DriverFactory.is_driver_available("mysqldb"))
Example #6
0
 def test_mongodb_app_installed(self):
     self.assertTrue(DriverFactory.is_driver_available("mongodb"))
Example #7
0
 def test_mysqldb_app_installed(self):
     self.assertTrue(DriverFactory.is_driver_available("mysql_single"))
     self.assertTrue(DriverFactory.is_driver_available("mysql_foxha"))
 def test_mongodb_app_installed(self):
     self.assertTrue(DriverFactory.is_driver_available("mongodb_single"))
     self.assertTrue(
         DriverFactory.is_driver_available("mongodb_replica_set")
     )
    def setUp(self):
        super(ExclusiveMethodsSentinel, self).setUp()

        klass = DriverFactory.get_driver_class("redis_sentinel")
        self.driver = klass(databaseinfra=self.databaseinfra)
 def test_redis_app_installed(self):
     self.assertTrue(DriverFactory.is_driver_available("redis_single"))
     self.assertTrue(DriverFactory.is_driver_available("redis_sentinel"))
import sys
sys.path.append("..")
import pytest
import time
from pages import SingUp
from pages import InitialPage
from drivers import DriverFactory
from drivers import DriverChrome


driver = DriverFactory.get_driver("chrome")
driver.instanceDriver()
driverIntanced = driver.returnDriver()
sing_up_page = SingUp(driverIntanced)
initial_page = InitialPage(driverIntanced)


def test_validate_second_page_in_create_account_is_displayed():
    driverIntanced.get("https://twitter.com/")
    initial_page.go_to_sing_up()
    time.sleep(12)
    sing_up_page.fill_first_step_create_account("edwin", "982021870")
    assert sing_up_page.get_text_from_title().find("2")
    driver.freeDriver()
 def test_redis_app_installed(self):
     self.assertTrue(DriverFactory.is_driver_available("redis"))
 def test_mongodb_app_installed(self):
     self.assertTrue(DriverFactory.is_driver_available("mongodb_single"))
     self.assertTrue(DriverFactory.is_driver_available("mongodb_replica_set"))