def test_bucket(self, s3_bucket): try: s3dvi = S3DatasetVersionInfo(s3_bucket) assert len(s3dvi.dataset_part_infos) >= 1 assert s3dvi.size > 0 except botocore.exceptions.ClientError: pytest.skip("insufficient AWS credentials")
def test_single_object(self, s3_bucket, s3_object): botocore = pytest.importorskip("botocore") try: s3dvi = S3DatasetVersionInfo(s3_bucket, s3_object) assert len(s3dvi.dataset_part_infos) == 1 assert s3dvi.size > 0 except botocore.exceptions.ClientError: pytest.skip("insufficient AWS credentials")