From 4012196fcd54111b250b5435bc28448cfe752fc5 Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Mon, 5 May 2025 23:58:30 +0200 Subject: [PATCH] remove Web() instance from the testcase - with importing app.py The blueprint Web() will automatically created and a second call in test- cases must avoided --- app/tests/test_web_route.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/tests/test_web_route.py b/app/tests/test_web_route.py index 4ed9b36..045a9be 100644 --- a/app/tests/test_web_route.py +++ b/app/tests/test_web_route.py @@ -1,6 +1,6 @@ # test_with_pytest.py import pytest -from server import app +from app import app from web import Web, web from async_stream import AsyncStreamClient from gen3plus.inverter_g3p import InverterG3P @@ -15,7 +15,6 @@ pytest_plugins = ('pytest_asyncio',) @pytest.fixture(scope="session") def client(): app.secret_key = 'super secret key' - Web(app, '../transfer', False) return app.test_client() @pytest.fixture