Untitled
unknown
plain_text
2 years ago
635 B
7
Indexable
import os from pathlib import Path from unittest import mock import pytest import duckdb from moto import mock_s3 import boto3 # @pytest.fixture # def aws_credentials(): # """Mocked AWS Credentials for moto.""" # os.environ["AWS_ACCESS_KEY_ID"] = "testing" # os.environ["AWS_SECRET_ACCESS_KEY"] = "testing" # os.environ["AWS_SECURITY_TOKEN"] = "testing" # os.environ["AWS_SESSION_TOKEN"] = "testing" @pytest.fixture def s3_client(): with mock_s3(): conn = boto3.client() yield conn @pytest.fixture() def getConnection(): con = duckdb.connect() yield con
Editor is loading...