diff --git a/.vscode/launch.json b/.vscode/launch.json index e755d78c5..f6b73fe0b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,14 +1,6 @@ { "version": "0.2.0", "configurations": [ - { - "name": "Python: Current File", - "type": "python", - "request": "launch", - "program": "${file}", - "console": "integratedTerminal", - "justMyCode": true - }, { "name": "Attach to Python Functions", "type": "python", @@ -56,6 +48,20 @@ "skipFiles": [ "node_modules/**" ], + }, + { + "name": "Debug tests", + "type": "python", + "request": "launch", + "module": "pytest" + }, + { + "name": "Python: Current File", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "justMyCode": true } ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 0ded3a67d..86c787578 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,5 +8,10 @@ "azureFunctions.projectLanguageModel": 2, "githubPullRequests.ignoredPullRequestBranches": [ "main" - ] + ], + "python.testing.pytestArgs": [ + "." + ], + "python.testing.unittestEnabled": false, + "python.testing.pytestEnabled": true } \ No newline at end of file diff --git a/code/requirements.txt b/code/requirements.txt index c6b87a824..8dc01394e 100644 --- a/code/requirements.txt +++ b/code/requirements.txt @@ -23,3 +23,6 @@ azure-search-documents==11.4.0b8 opencensus-ext-azure==1.1.13 pandas==1.5.1 python-docx==0.8.11 + +# Add dev dependencies here - this will be refactored out by Poetry +pytest==7.4.4