예제 #1
0
class TestBasic(object):
    """Basic test case class for all system tests.

    Initializes EnvironmentModel and FuelWebModel.

    """
    def __init__(self):
        self.env = EnvironmentModel()
        self.fuel_web = self.env.fuel_web

    def check_run(self, snapshot_name):
        """Checks if run of current test is required.

        :param snapshot_name: Name of the snapshot the function should make
        :type snapshot_name: str
        :raises: SkipTest

        """
        if snapshot_name:
            if self.env.get_virtual_environment().has_snapshot(snapshot_name):
                raise SkipTest()
예제 #2
0
class TestBasic(object):
    """Basic test case class for all system tests.

    Initializes EnvironmentModel and FuelWebModel.

    """
    def __init__(self):
        self.env = EnvironmentModel()
        self.fuel_web = self.env.fuel_web

    def check_run(self, snapshot_name):
        """Checks if run of current test is required.

        :param snapshot_name: Name of the snapshot the function should make
        :type snapshot_name: str
        :raises: SkipTest

        """
        if snapshot_name:
            if self.env.get_virtual_environment().has_snapshot(snapshot_name):
                raise SkipTest()
예제 #3
0
 def __init__(self):
     self.env = EnvironmentModel()
     self.fuel_web = self.env.fuel_web
예제 #4
0
 def __init__(self):
     self.env = EnvironmentModel()
     self.fuel_web = self.env.fuel_web
     self.test_program = TestProgram()
예제 #5
0
 def __init__(self):
     self.env = EnvironmentModel()
     self.fuel_web = self.env.fuel_web
예제 #6
0
 def env(self):
     if self.__env is None:
         self.__env = EnvironmentModel(self._devops_config)
     return self.__env