Fix formatting issue in test_drag_interceptor.py and ensure signal connection for drag_started
This commit is contained in:
parent
dbf8f2b92f
commit
1c1ec95139
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,6 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
|
|
||||||
from webdrop_bridge.core.drag_interceptor import DragInterceptor
|
from webdrop_bridge.core.drag_interceptor import DragInterceptor
|
||||||
from webdrop_bridge.core.validator import PathValidator
|
from webdrop_bridge.core.validator import PathValidator
|
||||||
|
|
||||||
|
|
@ -191,6 +190,7 @@ class TestDragInterceptorSignals:
|
||||||
interceptor.set_validator(validator)
|
interceptor.set_validator(validator)
|
||||||
|
|
||||||
from PySide6.QtCore import Qt
|
from PySide6.QtCore import Qt
|
||||||
|
|
||||||
# Connect to signal manually
|
# Connect to signal manually
|
||||||
signal_spy = []
|
signal_spy = []
|
||||||
interceptor.drag_started.connect(lambda paths: signal_spy.append(paths))
|
interceptor.drag_started.connect(lambda paths: signal_spy.append(paths))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue