Passed
Push — master ( 65fdce...99d2f2 )
by Jace
43s
created

it_uses_the_caller_name()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
1
# pylint: disable=redefined-outer-name,unused-variable,expression-not-assigned,singleton-comparison
2
3
import log
4
5
from . import demo
6
7
8
def describe_api():
9
10
    def it_has_custom_warn_function(expect):
11
        expect(log.warn) == log.warning
12
13
14
def describe_output():
15
16
    def it_uses_the_caller_name(expect, caplog):
17
        demo.foobar()
18
        expect(caplog.text) == "ERROR: tests.demo: Hello, world!\n"
19