-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
36 lines (33 loc) · 1.52 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[tox]
# use skipsdist=True to avoid needing a setup.py, since the thing we are testing is NOT a python package.
skipsdist = True
envlist = py38-dbt{1}-int
[pytest]
testpaths =
integration_tests/tests
[testenv]
setenv =
DISPLAY={env:DISPLAY:}
SNOWFLAKE_TEST_ACCOUNT={env:SNOWFLAKE_TEST_ACCOUNT:}
SNOWFLAKE_TEST_USER={env:SNOWFLAKE_TEST_USER:}
SNOWFLAKE_TEST_ROLE={env:SNOWFLAKE_TEST_ROLE:}
SNOWFLAKE_TEST_WAREHOUSE={env:SNOWFLAKE_TEST_WAREHOUSE:}
SNOWFLAKE_TEST_DATABASE={env:SNOWFLAKE_TEST_DATABASE:}
SNOWFLAKE_TEST_SCHEMA={env:SNOWFLAKE_TEST_SCHEMA:}
SNOWFLAKE_TEST_PRIVATE_KEY_PATH={env:SNOWFLAKE_TEST_PRIVATE_KEY_PATH:}
SNOWFLAKE_TEST_PRIVATE_KEY_PASSPHRASE={env:SNOWFLAKE_TEST_PRIVATE_KEY_PASSPHRASE:}
SNOWFLAKE_TEST_PASSWORD={env:SNOWFLAKE_TEST_PASSWORD:}
deps =
pytest
dbt1: dbt-core==1.3.0
dbt-snowflake==1.3.0
commands =
# --full-refresh will cause seed to drop existing seed tables first, which helps make tests deterministic.
dbt seed --project-dir integration_tests/seed_project --profiles-dir integration_tests/test_profile --full-refresh
dbt run --project-dir integration_tests/seed_project --profiles-dir integration_tests/test_profile
dbt deps --project-dir integration_tests/run_project --profiles-dir integration_tests/test_profile
dbt run --project-dir integration_tests/run_project --profiles-dir integration_tests/test_profile
pytest {posargs}
[testenv:black]
deps = black
commands = black --line-length 120 --check --diff integration_tests/tests