Example #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()
Example #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()
Example #3
0
 def __init__(self):
     self.env = EnvironmentModel()
     self.fuel_web = self.env.fuel_web
Example #4
0
 def __init__(self):
     self.env = EnvironmentModel()
     self.fuel_web = self.env.fuel_web
     self.test_program = TestProgram()
Example #5
0
 def __init__(self):
     self.env = EnvironmentModel()
     self.fuel_web = self.env.fuel_web
Example #6
0
 def env(self):
     if self.__env is None:
         self.__env = EnvironmentModel(self._devops_config)
     return self.__env