{
    "python.pythondefaultInterpreterPath": "${workspaceFolder}/test/.venv/bin/python3",
}

{
    "python.pythondefaultInterpreterPath": "${workspaceFolder}/test/.venv/bin/python3",
    "python.testing.unittestEnabled": false,
    "python.testing.pytestEnabled": true,
    "python.testing.cwd": "${workspaceFolder}/test"
}

Configure Python testing in VS Code
Configure Python testing in VS Code
