Skip to content

Commit

Permalink
change names
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Jun 9, 2024
1 parent 9684f6d commit 07ee05a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ envlist = lint_all, textenv
[testenv]
passenv =
DBT_PROFILES_DIR
; postgres env vars
# postgres env vars
POSTGRES_TEST_HOST
POSTGRES_TEST_USER
DBT_ENV_SECRET_POSTGRES_TEST_PASS
POSTGRES_TEST_PORT
POSTGRES_TEST_DBNAME
POSTGRES_TEST_SCHEMA
; snowflake env vars
# snowflake env vars
SNOWFLAKE_TEST_ACCOUNT
SNOWFLAKE_TEST_USER
DBT_ENV_SECRET_SNOWFLAKE_TEST_PASSWORD
Expand All @@ -23,7 +23,7 @@ passenv =


# Snowflake integration tests for centralized dbt testing
[testenv:centralized_integration_snowflake]
[testenv:dbt_integration_snowflake]
changedir = integration_tests
allowlist_externals = dbt
skip_install = true
Expand All @@ -37,24 +37,24 @@ commands =
# Postgres integration tests for centralized dbt testing
# run dbt commands directly, assumes dbt is already installed in environment
# tox runs at the root of the repo, so we need to cd out of the integration_tests directory
[testenv:centralized_integration_postgres]
[testenv:dbt_integration_postgres]
changedir = integration_tests
allowlist_externals =
dbt
bash
{[testenv:centralized_integration_postgres_pytest]allowlist_externals}
{[testenv:dbt_integration_postgres_pytest]allowlist_externals}
skip_install = true
deps = {[testenv:centralized_integration_postgres_pytest]deps}
deps = {[testenv:dbt_integration_postgres_pytest]deps}
commands =
dbt --version
dbt debug --target postgres
dbt deps --target postgres
dbt build --target postgres --full-refresh
bash -c "cd {toxinidir} && {[testenv:centralized_integration_postgres_pytest]commands}"
bash -c "cd {toxinidir} && {[testenv:dbt_integration_postgres_pytest]commands}"

# Postgres integration tests for centralized dbt testing
# Uses pytest to run tests, assumes dbt is already installed in environment
[testenv:centralized_integration_postgres_pytest]
[testenv:dbt_integration_postgres_pytest]
changedir = {toxinidir}
allowlist_externals = pytest
deps = pytest
Expand Down

0 comments on commit 07ee05a

Please sign in to comment.