pulumi/sdk/python/lib/test
Justin Van Patten 1ddc09f561
[sdk/python] Add pulumi.runtime.to_json utility (#5307)
Non-string provider inputs must be projected as JSON formatted strings. The current codegen simply calls `json.dumps` for such properties, but this does not work for the new input types, which aren't JSON serializable.

This commit adds a new `pulumi.runtime.to_json` utility function to the core SDK, which is capable of serializing both raw dicts and input types as JSON. The codegen will be updated to make use of this new function rather than `json.dumps`.
2020-09-09 12:08:45 -07:00
..
langhost Python SDK changes to support input/output classes (#5033) 2020-08-19 01:15:56 -07:00
__init__.py Fix a couple of issues when projecting Protobuf and UNKNOWN in Python (#1468) 2018-06-06 16:09:07 -07:00
test_next_serialize.py [sdk/python] Add support for Sequence (#5282) 2020-09-08 22:22:35 -07:00
test_runtime_to_json.py [sdk/python] Add pulumi.runtime.to_json utility (#5307) 2020-09-09 12:08:45 -07:00
test_test_mode.py Enable unit testing for Pulumi programs (#2638) 2019-04-16 22:20:01 -07:00
test_translate_output_properties.py [sdk/python] Add support for Sequence (#5282) 2020-09-08 22:22:35 -07:00
test_types_input_type.py Python SDK changes to support input/output classes (#5033) 2020-08-19 01:15:56 -07:00
test_types_output_type.py Python SDK changes to support input/output classes (#5033) 2020-08-19 01:15:56 -07:00
test_types_resource_types.py Python SDK changes to support input/output classes (#5033) 2020-08-19 01:15:56 -07:00
test_utils.py Python SDK changes to support input/output classes (#5033) 2020-08-19 01:15:56 -07:00