def setUp(self) -> None: if not compose.found(): self.skipTest('docker-compose not found') super().setUp() logger.debug('self.docker_compose_services: %s', self.docker_compose_services) compose.up(self.docker_compose_services) self.addCleanup(compose.stop)
def setUp(self) -> None: if not compose.found(): self.skipTest("docker-compose not found") super().setUp() logger.debug("self.__class__.docker_compose_services: %s", self.__class__.docker_compose_services) compose.up(self.docker_compose_services) self.addCleanup(compose.stop)
def setUp(self) -> None: if not compose.found(): self.skipTest('docker-compose not found') super().setUp() logger.debug('self.__class__.docker_compose_services: %s', self.__class__.docker_compose_services) compose.up(self.docker_compose_services) self.addCleanup(compose.stop)
def run(self) -> None: with self.context.assertRaises(self.error.__class__, msg=self.error.args[0]) as error: compose.up(**self.parameters) self.exception = error.exception
def run(self) -> None: with self.context.assertRaises(self.error.__class__, msg = self.error.args[0]) as error: compose.up(**self.parameters) self.exception = error.exception