Skip to content

Commit

Permalink
Remove / disable stdout output in CPE match DB test
Browse files Browse the repository at this point in the history
  • Loading branch information
timopollmeier committed Jan 9, 2025
1 parent c3de11d commit 10b423b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/cpe_match/worker/test_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)

0 comments on commit 10b423b

Please sign in to comment.