From 16e82e8265d61268f29dcb7680e0d4d54f7db9d5 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 28 Oct 2024 17:05:13 -0400 Subject: [PATCH] done --- .github/workflows/tests.yml | 2 +- bbot/test/test_step_1/test_events.py | 30 ---------------------------- 2 files changed, 1 insertion(+), 31 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 70d380022..ab04a94e4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,7 +48,7 @@ jobs: poetry install - name: Run tests run: | - poetry run pytest --exitfirst -k test_test_output --reruns 2 -o timeout_func_only=true --timeout 1200 --disable-warnings --log-cli-level=INFO --cov-config=bbot/test/coverage.cfg --cov-report xml:cov.xml --cov=bbot . + poetry run pytest --exitfirst --reruns 2 -o timeout_func_only=true --timeout 1200 --disable-warnings --log-cli-level=INFO --cov-config=bbot/test/coverage.cfg --cov-report xml:cov.xml --cov=bbot . - name: Upload Debug Logs uses: actions/upload-artifact@v3 with: diff --git a/bbot/test/test_step_1/test_events.py b/bbot/test/test_step_1/test_events.py index 1d8cfd14c..00ce75ff8 100644 --- a/bbot/test/test_step_1/test_events.py +++ b/bbot/test/test_step_1/test_events.py @@ -925,33 +925,3 @@ def test_event_closest_host(): vuln = scan.make_event( {"path": "/tmp/asdf.txt", "description": "test", "severity": "HIGH"}, "VULNERABILITY", parent=event3 ) - - -def test_test_output(): - - import logging - - root = logging.getLogger() - print("Root logger handlers:") - for h in root.handlers: - print(f" Handler: {type(h).__name__}") - print(f" Stream: {getattr(h, 'stream', 'no stream')}") - print(f" Level: {logging.getLevelName(h.level)}") - print(f" Formatter: {h.formatter._fmt if h.formatter else 'None'}") - print() - - # Check other loggers too - for name in logging.root.manager.loggerDict: - logger = logging.getLogger(name) - if logger.handlers: - print(f"Logger '{name}' handlers:") - for h in logger.handlers: - print(f" Handler: {type(h).__name__}") - print(f" Stream: {getattr(h, 'stream', 'no stream')}") - print(f" Level: {logging.getLevelName(h.level)}") - print(f" Formatter: {h.formatter._fmt if h.formatter else 'None'}") - print() - - import traceback - - assert False, traceback.format_stack()