import pytest
import os

# Import the fuctional fixtures as a plugin
# Note: fixtures with session scope need to be local

pytest_plugins = ["dbt.tests.fixtures.project"]

# The profile dictionary, used to write out profiles.yml
@pytest.fixture(scope="class")
def dbt_profile_target():
    return {
        'type': 'redshift',
        'threads': 1,
        'host': os.getenv('REDSHIFT_TEST_HOST'),
        'port': int(os.getenv('REDSHIFT_TEST_PORT')),
        'user': os.getenv('REDSHIFT_TEST_USER'),
        'pass': os.getenv('REDSHIFT_TEST_PASS'),
        'dbname': os.getenv('REDSHIFT_TEST_DBNAME'),
    }


