You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# from project dircd dbt-fal/projects/adapter
pyenv local 3.10
Install deps
# from project dircd dbt-fal/projects/adapter
poetry config virtualenvs.in-project true# this will create local .venv dir to use in PyCharm
poetry env use 3.10
poetry lock
poetry install --with dev
poetry install --extras postgres
poetry install --extras spark
Run unit tests
# from project dircd dbt-fal/projects/adapter
./run_tests_env.sh
poetry run pytest tests # if you run from PyCharm it adds "tests" dir to eorking dir and breaks path, need to be fixed
Run integration tests
# from dir with integration testscd dbt-fal/projects/adapter/integration_tests
./run.sh # some tests for functionality we are not going to support are skipped
Configure PyCharm
Venv
Go to Settings -> Project -> Project interpreter
Add Interpreter -> Add Local -> Check "From existing"
Path to Interpreter: dnt-fal/projects/adapter/.venv/bin/python
Tests
Right click on dbt-fal/projects/adapter/tests
"Run pytest in tests"
Get the "mock does not exist" error
In "Running configurations" (top-right corner), select pytest -> more actions -> edit
In working dir drop tests dir from the end of path