From 10b423b6d7947e8e394ada87ed84b4c9db891b4b Mon Sep 17 00:00:00 2001 From: Timo Pollmeier Date: Thu, 9 Jan 2025 10:02:07 +0100 Subject: [PATCH] Remove / disable stdout output in CPE match DB test --- tests/cpe_match/worker/test_db.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/cpe_match/worker/test_db.py b/tests/cpe_match/worker/test_db.py index 3dba593..ad4d3f6 100644 --- a/tests/cpe_match/worker/test_db.py +++ b/tests/cpe_match/worker/test_db.py @@ -268,8 +268,8 @@ class WriteTestCase(unittest.IsolatedAsyncioTestCase): "greenbone.scap.generic_cli.worker.db.PostgresDatabase", autospec=True ) async def test_write_json(self, db_mock: AsyncMock): - console = Console(quiet=False) - error_console = Console(quiet=False) + console = Console(quiet=True) + error_console = Console(quiet=True) progress = Progress(disable=True) producer = CpeMatchMockProducer( @@ -317,5 +317,3 @@ async def test_write_json(self, db_mock: AsyncMock): self.assertGreaterEqual( self.NUM_CHUNKS, db_mock.mock_calls.count(insert_call) ) - - print(db_mock)