From 96e5f393a54488066e8b8618683ab56706ce44ae Mon Sep 17 00:00:00 2001 From: "jj-author@users.noreply.github.com" Date: Fri, 15 Nov 2024 14:45:55 +0100 Subject: [PATCH] fixed missing version and other adoptions to launch.json --- .vscode/launch.json | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 9740696..5f2b3d6 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,14 +1,15 @@ { + "version": "0.2.0", "configurations": [ { + "name": "Time-Machine (manual virtual env selection)", "type": "debugpy", "request": "launch", - "name": "Run Time-Machine (manual virtual env selection)", "program": "${workspaceFolder}/ontologytimemachine/custom_proxy.py", "args": [ "--ontoFormat","ntriples", - "--ontoVersion","originalFailoverLiveLatest", - "--ontoPrecedence","enforcedPriority", + "--ontoVersion","latestArchived", + // "--ontoPrecedence","enforcedPriority", "--httpsInterception","archivo", "--logLevelTimeMachine","debug", "--logLevelBase","info", @@ -16,16 +17,16 @@ ] }, { - "name": "Run pytest module (manual virtual env selection)", + "name": "Pytest test (manual virtual env selection)", "type": "debugpy", "request": "launch", "cwd": "${workspaceFolder}", "module": "pytest", - "args": [ + "args": [ "tests/test_proxy_auth_header.py" ], "console": "integratedTerminal", // "preLaunchTask":"Wait for Poetry Run Time-Machine-Proxy", - "justMyCode": true, + "justMyCode": false }, { //untested "type": "debugpy", @@ -43,6 +44,17 @@ }, "python": "${workspaceFolder}/.venv/bin/python", //use the virtualenv created by poetry from the project folder "preLaunchTask": "Poetry Install" // run the task to create virtual environment and install dependencies before launching the script - } + }, + // { // does not work + // "name": "Python: Tests in current file", + // "purpose": ["debug-test"], + // "type": "debugpy", + // "request": "launch", + // "program": "${file}", + // "args": ["--color=yes --log-cli-level=DEBUG"], + // "env": {"ENV_VAR":"RandomStuff"}, + // "console": "integratedTerminal", + // "justMyCode": false + // } ] } \ No newline at end of file