Skip to content

Commit

Permalink
Don't fail other tests than SHA extractor ones
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik committed Nov 1, 2023
1 parent 380b142 commit a1307f5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions features/steps/insights_sha_extractor_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@

"""Implementation of logic behind usage of S3 and Kafka in SHA extractor tests."""

import boto3
import json
import logging
import os

import json
from behave import when
from botocore.exceptions import ClientError
from src import kafka_util

try:
import boto3
from botocore.exceptions import ClientError
except ImportError as e:
print("Warning: unable to import module:", e)


def create_presigned_url(s3_client, bucket_name, object_name, expiration=3600):
"""Generate a presigned URL to share an S3 object."""
Expand Down

0 comments on commit a1307f5

Please sign in to comment.