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()
def __init__(self): self.env = EnvironmentModel() self.fuel_web = self.env.fuel_web
def __init__(self): self.env = EnvironmentModel() self.fuel_web = self.env.fuel_web self.test_program = TestProgram()
def env(self): if self.__env is None: self.__env = EnvironmentModel(self._devops_config) return self.__env