Testing Utils Module

Utility functionality for the testing suite.

testing.utils.deep_update(orig, override)[source]

Update leaf values of a data structure (nested dictionaries and lists).


Both orig and override should be of the same type. E.g. both orig and override are a dict, or both are a list.

orig (dict or list)

The original data structure.

override (dict or list)

The overriding data structure.

dict or list

The orig object, updated with the override values.