ansible-playbook-grapher/tests/test_utils.py
Mohamed El Mouctar Haidara 76dbdacbe4
ci: Use ruff for linting and format (#199)
- Code cleanup with ruff
- Fix typos

---------

Co-authored-by: haidaraM <haidaraM@users.noreply.github.com>
2024-09-08 08:58:27 +02:00

9 lines
274 B
Python

from ansibleplaybookgrapher.utils import merge_dicts
def test_merge_dicts() -> None:
"""Test dicts grouping.
:return:
"""
res = merge_dicts({"1": {2, 3}, "4": {5}, "9": [11]}, {"4": {7}, "9": set()})
assert res == {"1": {2, 3}, "4": {5, 7}, "9": {11}}