Skip to content

Bug: issue with callbacks that also call proxy methods: #4

Open
@tlambert03

Description

@tlambert03

something is broken when a signal callback connected to a proxy event itself calls proxy methods:

def test_cb(proxy: CMMCorePlus) -> None:
    mock = Mock()

    @proxy.events.imageSnapped.connect
    def callback() -> None:
        proxy.getLoadedDevices()  # test fails unless you comment out this line
        mock()

    proxy.snapImage()
    mock.assert_called_once()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions