Conditions | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | # pylint: disable=redefined-outer-name,unused-variable,expression-not-assigned,singleton-comparison |
||
16 | def describe_output(): |
||
17 | |||
18 | def it_includes_the_caller_location(expect, caplog): |
||
19 | demo.foobar() |
||
20 | expect(caplog.text) == \ |
||
21 | "demo.py 5 ERROR Hello, world!\n" |
||
22 | |||
23 | @pytest.mark.last |
||
24 | def it_can_be_formatted_with_init(expect, caplog): |
||
25 | log.init("%(levelname)s: %(name)s: %(message)s") |
||
26 | demo.foobar() |
||
27 | expect(caplog.text) == "ERROR: tests.demo: Hello, world!\n" |
||
28 |