Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
514 B
2
Indexable
from fastapi import HTTPException
import pytest

from src.app_functions.S3_funcs import parquetExists

@pytest.fixture
def bucket_name():
    return "test"

@pytest.fixture
def file_name():
    return "test.parquet"

# def testParquetExists(s3_client,file_name,bucket_name):    
#     # Test case: bucket exists and file exists 
#     with pytest.raises(HTTPException) as e:
#         parquetExists(s3_client,file_name,"test 1")
#     assert str(e.value) == "S3 bucket test 1 does not exist"