Beispiel #1
0
def test_send_report():
    b = BaseBackend(None, '', '', None)
    with pytest.raises(NotImplementedError):
        b.send_report('', '')
Beispiel #2
0
def test_qsettings():
    b = BaseBackend(None, '', '', None)
    assert b.qsettings() is not None
Beispiel #3
0
def test_set_formatter():
    b = BaseBackend(None, '', '', None)
    assert b.formatter is None
    b.set_formatter(EmailFormatter("test"))
    assert isinstance(b.formatter, EmailFormatter)