Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: pytest fixture for checking if signal was emmited #46

Open
Czaki opened this issue Nov 12, 2021 · 1 comment
Open

Feature: pytest fixture for checking if signal was emmited #46

Czaki opened this issue Nov 12, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Czaki
Copy link
Contributor

Czaki commented Nov 12, 2021

It will be nice to have pytest fixture to check if the Signal was emitted. Something similar to qtbot.wati_singal and qtbot.wait_signals This will be really helpful when using tread propagation of Signals.

@tlambert03
Copy link
Member

Totally agree.
Just a note though, you actually can use qtbot wait signals here!
There's even a test to make sure it works: https://github.com/tlambert03/psygnal/blob/main/tests/test_qtbot.py

Of course, that requires actually having a qt backend, which may in some cases defeat the purpose of this Lib, so it's still a good feature request.

@tlambert03 tlambert03 added the enhancement New feature or request label Jan 22, 2022
@tlambert03 tlambert03 changed the title Idea: pytest fixture for checking if signal was emmited Feature: pytest fixture for checking if signal was emmited Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants