Positional arguments supplied are proxied as kwarg.
(self)
| 227 | assert "debug" == bl.log(10, "event") |
| 228 | |
| 229 | def test_positional_args_proxied(self): |
| 230 | """ |
| 231 | Positional arguments supplied are proxied as kwarg. |
| 232 | """ |
| 233 | bl = BoundLogger(ReturnLogger(), [], {}) |
| 234 | _args, kwargs = bl.debug("event", "foo", bar="baz") |
| 235 | |
| 236 | assert "baz" == kwargs.get("bar") |
| 237 | assert ("foo",) == kwargs.get("positional_args") |
| 238 | |
| 239 | @pytest.mark.parametrize( |
| 240 | "attribute_name", |
nothing calls this directly
no test coverage detected