This commit is contained in:
Florian Bruhin 2018-03-20 06:38:11 +01:00
parent 8eb4d15805
commit a374698693
2 changed files with 4 additions and 3 deletions

View File

@ -87,10 +87,11 @@ def log_signals(obj):
return ret
obj.__init__ = new_init
return obj
else:
connect_log_slot(obj)
return obj
def qenum_key(base, value, add_base=False, klass=None):
"""Convert a Qt Enum value to its key as a string.

View File

@ -63,7 +63,7 @@ def test_settext_empty(mocker, qtbot):
autospec=True)
label.setText('')
label.repaint.assert_called_with()
label.repaint.assert_called_with() # pylint: disable=no-member
def test_resize(qtbot):
@ -92,7 +92,7 @@ def test_text_elide_none(mocker, qtbot):
'fontMetrics')
label._update_elided_text(20)
assert not label.fontMetrics.called
assert not label.fontMetrics.called # pylint: disable=no-member
def test_unset_text(qtbot):