()
| 248 | |
| 249 | |
| 250 | def test_either_dict_or_kwargs(): |
| 251 | result = either_dict_or_kwargs(dict(a=1), {}, "foo") |
| 252 | expected = dict(a=1) |
| 253 | assert result == expected |
| 254 | |
| 255 | result = either_dict_or_kwargs({}, dict(a=1), "foo") |
| 256 | expected = dict(a=1) |
| 257 | assert result == expected |
| 258 | |
| 259 | with pytest.raises(ValueError, match=r"foo"): |
| 260 | result = either_dict_or_kwargs(dict(a=1), dict(a=1), "foo") |
| 261 | |
| 262 | |
| 263 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected
searching dependent graphs…