Skip to content

Commit 9b9952e

Browse files
committed
✨ Add new test configuration for external envfile support in pytest
1 parent 031ee68 commit 9b9952e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.vscode/launch.template.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,28 @@
4444
"justMyCode": false
4545
},
4646
{
47+
// This test adds --external-envfile and expects a file named ".secrets" in the workspace root.
48+
"name": "Python: Test w/ repo.config",
49+
"type": "debugpy",
50+
"request": "launch",
51+
"module": "pytest",
52+
"args": [
53+
"--ff",
54+
"--log-cli-level=INFO",
55+
"--external-envfile=${workspaceFolder}/.secrets",
56+
"--pdb",
57+
"--setup-show",
58+
"--durations=5",
59+
"-s",
60+
"-vv",
61+
"${file}"
62+
],
63+
"cwd": "${workspaceFolder}",
64+
"console": "integratedTerminal",
65+
"justMyCode": false
66+
},
67+
{
68+
// This tests enables the httpx spy and dumps captures in a json. Mainly for api-server
4769
"name": "Python: Test-Httpx-Spy",
4870
"type": "debugpy",
4971
"request": "launch",

0 commit comments

Comments
 (0)