From 361b2b1f42784054145baab5cbb67255539eefae Mon Sep 17 00:00:00 2001 From: Helldragon67 Date: Fri, 14 Feb 2025 10:44:09 +0100 Subject: [PATCH] full passed tests --- .vscode/launch.json | 12 ++++++++--- backend/report.html | 12 +++++------ backend/src/tests/test_main.py | 38 +++++++++++++++++----------------- 3 files changed, 34 insertions(+), 28 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 6f1ce86..73b97b6 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -21,15 +21,21 @@ ] }, { - "name": "Backend - tester", + "name": "Backend - test", "type": "debugpy", "request": "launch", - "program": "src/tester.py", + "module": "pytest", + "args": [ + "src/tests", + "--log-cli-level=DEBUG", + "--html=report.html", + "--self-contained-html" + ], "env": { "DEBUG": "true" }, "cwd": "${workspaceFolder}/backend" - }, + }, // frontend - flutter app { "name": "Frontend - debug", diff --git a/backend/report.html b/backend/report.html index f89bcab..c9876cf 100644 --- a/backend/report.html +++ b/backend/report.html @@ -328,7 +328,7 @@ div.media {

Backend Testing Report

-

Report generated on 14-Feb-2025 at 10:33:15 by pytest-html +

Report generated on 14-Feb-2025 at 10:43:27 by pytest-html v4.1.1

Environment

@@ -382,7 +382,7 @@ div.media {

Summary

-

1 test took 681 ms.

+

25 tests took 00:00:42.

(Un)check the boxes to filter the results.