MCPcopy
hub / github.com/celery/celery / test_docstring_example

Method test_docstring_example

t/unit/tasks/test_canvas.py:1938–1947  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1936class test_merge_dictionaries(CanvasCase):
1937
1938 def test_docstring_example(self):
1939 d1 = {'dict': {'a': 1}, 'list': [1, 2], 'tuple': (1, 2)}
1940 d2 = {'dict': {'b': 2}, 'list': [3, 4], 'set': {'a', 'b'}}
1941 _merge_dictionaries(d1, d2)
1942 assert d1 == {
1943 'dict': {'a': 1, 'b': 2},
1944 'list': [1, 2, 3, 4],
1945 'tuple': (1, 2),
1946 'set': {'a', 'b'}
1947 }
1948
1949 @pytest.mark.parametrize('d1,d2,expected_result', [
1950 (

Callers

nothing calls this directly

Calls 1

_merge_dictionariesFunction · 0.90

Tested by

no test coverage detected