Skip to content

test(cli-logging): preserve caplog across repeated init - #86

Merged
PakitoSec merged 1 commit into
mainfrom
test/cli-logging-preserve-caplog-across-reinit-17ab5a4
Sep 5, 2026
Merged

test(cli-logging): preserve caplog across repeated init#86
PakitoSec merged 1 commit into
mainfrom
test/cli-logging-preserve-caplog-across-reinit-17ab5a4

Conversation

@PakitoSec

Copy link
Copy Markdown
Owner

Summary

  • update the CLI log capture fixture to attach pytest's capture handler directly to the cyvest.cli logger before logurich reinitializes logging
  • clean up the temporary handler after each test so repeated CLI setup and teardown does not break captured log assertions
  • add regression coverage that invokes cli engines twice and verifies the expected log output is still captured

Testing

  • regression coverage added in tests/test_cli.py for repeated CLI initialization and log capture behavior

@PakitoSec PakitoSec self-assigned this Sep 5, 2026
@PakitoSec
PakitoSec merged commit 124b0d6 into main Sep 5, 2026
@PakitoSec
PakitoSec deleted the test/cli-logging-preserve-caplog-across-reinit-17ab5a4 branch September 5, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant