Join Slack
Powered by
so it looks like some tests (v2 tests I think) are...
# general
h
hundreds-breakfast-49010
12/06/2019, 10:44 PM
so it looks like some tests (v2 tests I think) are using
Console
with mock stdout and stderr passed into them as the test console, and other tests (maybe v1-only tests?) are using a special
MockConsole
data structure
h
hundreds-father-404
12/06/2019, 10:52 PM
We use it in the V2 fmt and lint tests:
https://github.com/pantsbuild/pants/blob/76c14d4961f2740ddd8eada0965e793e7521c0d2/src/python/pants/rules/core/fmt_test.py#L60
Open in Slack
Previous
Next