gchq / gchq/ConcourseTools

Allow for disabling output capture in `SimpleTestResourceWrapper` to allow using `pdb` in tests.

Open
#21 1 comment 0 reactions 1 assignee Claimed by @riebecj View on GitHub
Dominant language
Python
Stars
17
Forks
3
Avg merge
22h 1m
Merged PRs (30d)
3

Description

Currently, the `SimpleTestResourceWrapper` uses `with self._debugging_output.capture_stdout_and_stderr()` to capture stdout and stderr with no way to disable it. This prevents using `pdb` for test debugging because it's unable to pipe stdout/stderr. I have manually patched my sources by adding a `capture: bool = False` option in each of the resource hook functions, but it would be nice to have it supported with your intentional design input.

I could also fork and submit a PR, if needed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.