import boto3
import os
import pytest

from moto import mock_s3


@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"] = "<PASSWORD>"
    os.environ["AWS_SESSION_TOKEN"] = "<PASSWORD>"

@pytest.fixture
def s3_client(aws_credentials):
    with mock_s3():
        conn = boto3.client("s3", region_name="us-east-1")
        yield conn

@pytest.fixture
def global_var():
    pytest.csv_word_count_limit = 100
    pytest.docx_word_count_limit = 100
    pytest.email_word_count_limit = 100
    pytest.ner_word_count_limit = 100
    pytest.squad_word_count_limit = 100
    pytest.pdf_word_count_limit = 100
    pytest.txt_word_count_limit = 100
    pytest.xlsx_word_count_limit = 100
 
import boto3
import os
import pytest

from moto import mock_s3


@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"] = "<PASSWORD>"
    os.environ["AWS_SESSION_TOKEN"] = "<PASSWORD>"

@pytest.fixture
def s3_client(aws_credentials):
    with mock_s3():
        conn = boto3.client("s3", region_name="us-east-1")
        yield conn

@pytest.fixture
def global_var():
    pytest.csv_word_count_limit = 100
    pytest.docx_word_count_limit = 100
    pytest.email_word_count_limit = 100
    pytest.ner_word_count_limit = 100
    pytest.squad_word_count_limit = 100
    pytest.pdf_word_count_limit = 100
    pytest.txt_word_count_limit = 100
    pytest.xlsx_word_count_limit = 100
 
Mocked AWS Credentials for moto.