import boto3
import os


def test_config_available():
    session = boto3.Session()
    assert session.region_name == 'eu-central-1'  # see test_config/config
    assert session.available_profiles == ['default', 'other']


def test_env_variables_available():
    assert os.environ['AWS_ROLE_SESSION_NAME'] == 'test-role-session-name'  # see Dockerfile


def test_credentials_available():
    session = boto3.Session()
    assert session.get_credentials() is not None


def test_can_create_client():
    assert boto3.client('sqs')
