diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..171936b --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,23 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Current File", + "type": "debugpy", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal" + }, + { + "name": "Python: Run Functional Tests (From Scratch)", + "type": "debugpy", + "request": "launch", + "program": "pytest", + "console": "integratedTerminal", + "env": { + "PYTEST_CASSETTES_DIR": "${workspaceFolder}/tests/cassettes" + }, + "preLaunchTask": "delete_cassettes" + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..98394f0 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "delete_cassettes", + "type": "shell", + "command": "rm", + "args": ["-rf", "${workspaceFolder}/tests/**/cassettes/*.yaml"], + "problemMatcher": { + "base": "$tsc-watch", + "applyTo": "allDocuments" + } + } + ] +}