()
| 84 | |
| 85 | |
| 86 | def test_join_dict_keys() -> None: |
| 87 | dicts = [dict.fromkeys(keys) for keys in [["x", "y"], ["y", "z"]]] |
| 88 | assert list(join_dict_keys(dicts, "left")) == ["x", "y"] |
| 89 | assert list(join_dict_keys(dicts, "right")) == ["y", "z"] |
| 90 | assert list(join_dict_keys(dicts, "inner")) == ["y"] |
| 91 | assert list(join_dict_keys(dicts, "outer")) == ["x", "y", "z"] |
| 92 | with pytest.raises(ValueError): |
| 93 | join_dict_keys(dicts, "exact") |
| 94 | with pytest.raises(KeyError): |
| 95 | join_dict_keys(dicts, "foobar") |
| 96 | |
| 97 | |
| 98 | def test_collect_dict_values() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…