-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e6d043
commit cb2d109
Showing
5 changed files
with
86 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
DBT_TEST_ATHENA_S3_STAGING_DIR= | ||
DBT_TEST_ATHENA_S3_TMP_TABLE_DIR= | ||
DBT_TEST_ATHENA_REGION_NAME= | ||
DBT_TEST_ATHENA_THREADS= | ||
DBT_TEST_ATHENA_POLL_INTERVAL= | ||
DBT_TEST_ATHENA_DATABASE= | ||
DBT_TEST_ATHENA_SCHEMA= | ||
DBT_TEST_ATHENA_WORK_GROUP= | ||
DBT_TEST_ATHENA_THREADS= | ||
DBT_TEST_ATHENA_POLL_INTERVAL= | ||
DBT_TEST_ATHENA_NUM_RETRIES= | ||
DBT_TEST_ATHENA_AWS_PROFILE_NAME= | ||
DBT_TEST_ATHENA_SPARK_WORK_GROUP= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import os | ||
|
||
import pytest | ||
|
||
# Import the functional 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": "athena", | ||
"s3_staging_dir": os.getenv("DBT_TEST_ATHENA_S3_STAGING_DIR"), | ||
"s3_tmp_table_dir": os.getenv("DBT_TEST_ATHENA_S3_TMP_TABLE_DIR"), | ||
"region_name": os.getenv("DBT_TEST_ATHENA_REGION_NAME"), | ||
"database": os.getenv("DBT_TEST_ATHENA_DATABASE"), | ||
"schema": os.getenv("DBT_TEST_ATHENA_SCHEMA"), | ||
"work_group": os.getenv("DBT_TEST_ATHENA_WORK_GROUP"), | ||
"threads": int(os.getenv("DBT_TEST_ATHENA_THREADS", "1")), | ||
"poll_interval": float(os.getenv("DBT_TEST_ATHENA_POLL_INTERVAL", "1.0")), | ||
"num_retries": int(os.getenv("DBT_TEST_ATHENA_NUM_RETRIES", "2")), | ||
"aws_profile_name": os.getenv("DBT_TEST_ATHENA_AWS_PROFILE_NAME") or None, | ||
"spark_work_group": os.getenv("DBT_TEST_ATHENA_SPARK_WORK_GROUP"), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters