Структура папок следующая:
Код: Выделить всё
project-root
|- .vscode
- settings.json
|-data-processing
| |-src
| |-tests
Код: Выделить всё
...project-root/data-processing
Код: Выделить всё
...project-root
Код: Выделить всё
settings.json
Код: Выделить всё
{
"python.testing.pytestArgs": [
"data-processing/tests",
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
Код: Выделить всё
{
"python.testing.pytestArgs": [
"tests",
],
"python.testing.cwd": "./data-processing/",
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
Так как же получить тот же рабочий каталог в VS Code для тестовых запусков? Изменение каталога с помощью os.chdir не работает, поскольку моя проблема связана с разрешением модуля из pyspark.
Подробнее здесь: https://stackoverflow.com/questions/784 ... -directory