Changes testFormatKeys to use assertions that will fail if any of the supported keys does not produce output in the formatted JSON.
Quality assurance - If any additional keys are added to supported_keys, the formatter will not find a value in the record, and the value in the output will be None, so assertIsNotNone will fail for that key.
Resolves https://github.com/madzak/python-json-logger/issues/103
Changes
testFormatKeys
to use assertions that will fail if any of the supported keys does not produce output in the formatted JSON. Quality assurance - If any additional keys are added tosupported_keys
, the formatter will not find a value in the record, and the value in the output will beNone
, soassertIsNotNone
will fail for that key. Resolves https://github.com/madzak/python-json-logger/issues/103