Skip to content

통합 테스트에서 발견된 S3ImgDownloader문제 #1

Description

@Hyune0129

S3ImgDownloader의 생성자에 인자로 들어가는 포맷 형식 Error

jpg -> png는 테스트하였으나, png -> jpg는 에러가 발생

  • S3ImaDownloader.__init__의 self.format_type 제거하게 설정

download()를 사용하면 로컬 파일로 이미지를 저장함

AI와 통합 전 단위 테스트를 위해 s3 url로 전달받은 데이터를 저장한 뒤 사용되게 작성하였기 때문
입출력 시간은 상당히 크므로 이를 변경할 필요가 있다.

  • S3ImgDownloader.download() -> S3ImgDownloader.download_in_local()로 메소드 변경
  • 메모리에 s3url로 이미지(리턴 타입은 찾아볼 것)저장하는 S3ImgDownloader.download_in_memory() 메소드 생성

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions