-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add launch and task configurations
- Loading branch information
1 parent
771640b
commit d081022
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
] | ||
} |