parent
31604a0cd2
commit
39576ac7f3
54 changed files with 1616 additions and 4012 deletions
18
tests/test_lock_overlay.py
Normal file
18
tests/test_lock_overlay.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import pytest
|
||||
from PySide6.QtCore import QEvent
|
||||
from PySide6.QtWidgets import QWidget
|
||||
from bouquin.lock_overlay import LockOverlay
|
||||
|
||||
|
||||
@pytest.mark.gui
|
||||
def test_lock_overlay_reacts_to_theme(qtbot):
|
||||
host = QWidget()
|
||||
qtbot.addWidget(host)
|
||||
host.show()
|
||||
|
||||
ol = LockOverlay(host, on_unlock=lambda: None)
|
||||
qtbot.addWidget(ol)
|
||||
ol.show()
|
||||
|
||||
ev = QEvent(QEvent.Type.PaletteChange)
|
||||
ol.changeEvent(ev)
|
||||
Loading…
Add table
Add a link
Reference in a new issue