def init_lightstep_tracer(self): check_package_exists("lightstep") lightstep = import_package("lightstep") return lightstep.Tracer(component_name=self.component_name)
def _init_boto(self): # pragma: no cover check_package_exists("boto3") boto3 = import_package("boto3") boto3.set_stream_logger(name='botocore') self.client = boto3.client('kms')
def test_import_package(self): os_import = import_package("os") assert os_import == os
def _init_boto(self) -> None: # pragma: no cover check_package_exists("boto3") boto3 = import_package("boto3") boto3.set_stream_logger(name="botocore") self.client = boto3.client("kms")