pulumi/pkg/codegen/python
bors[bot] b27c71f5bd
Merge #12377
12377: sdk/go: Add common/testing/iotest package r=abhinav a=abhinav

Adds a new iotest subpackage to the common/testing package
and moves the testLogWriter used in a prior integration test
into this directory.

The new API is:

    package iotest

    func LogWriter(testing.TB) io.Writer

This is a generally useful utility in any test that needs an io.Writer,
where we want them to not pollute actual stdout or stderr.

There are a few direct uses of os.Stderr and os.Stdout in our tests.
The second commit switches these to use iotest.LogWriter where appropriate,

Uses of os.Stdout/Stderr that were omitted:

- Example tests: These don't have a testing.TB to log to.
- pulumi/main_test: Replaces the global os.Stdout/Stderr in TestMain.
  LogWriter isn't relevant there.


Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
2023-03-10 20:33:51 +00:00
..
gen_program_test all: gofmt -w -s 2023-01-10 19:03:24 -08:00
.gitignore Simplify output-funcs codegen test (#8039) 2021-09-23 13:42:20 -04:00
doc.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_intrinsics.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
gen_program.go Add "NotImplemented" PCL function intrinsic 2023-03-10 12:14:28 +01:00
gen_program_expressions.go Add "NotImplemented" PCL function intrinsic 2023-03-10 12:14:28 +01:00
gen_program_lower.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_program_quotes.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
gen_program_quotes_test.go Add missing required attributes for TestLowerPropertyAccess 2023-03-08 15:42:02 +01:00
gen_program_test.go chore: Update makefile, ensure make test_codegen_go 2022-10-17 00:22:48 -07:00
gen_program_utils.go Add "NotImplemented" PCL function intrinsic 2023-03-10 12:14:28 +01:00
gen_resource_mappings.go Repair tests expecting nil slices 2023-01-11 21:53:04 -08:00
gen_resource_mappings_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
gen_test.go chore(all): Log to iotest.LogWriter from tests 2023-03-07 11:27:47 -08:00
importer.go Respect schema versions (toggled via flag) (#8881) 2022-02-03 17:07:13 +01:00
python.go ci: gofmt 1.18+ clean 2022-09-21 09:48:39 -07:00
python_test.go Support a logical name for config vars 2022-11-02 12:39:57 -07:00
requirements.txt Simplify output-funcs codegen test (#8039) 2021-09-23 13:42:20 -04:00
test.go fix(ci): Split programgen tests over more jobs 2022-10-16 23:20:45 -07:00
utilities.go Repair tests expecting nil slices 2023-01-11 21:53:04 -08:00
utilities_test.go Merge #11052 2022-10-18 01:15:49 +00:00