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

Add dispatcher/testing/ utilities to help testing #9

Open
AlanCoding opened this issue Oct 23, 2024 · 0 comments · May be fixed by #129
Open

Add dispatcher/testing/ utilities to help testing #9

AlanCoding opened this issue Oct 23, 2024 · 0 comments · May be fixed by #129
Labels

Comments

@AlanCoding
Copy link
Member

AlanCoding commented Oct 23, 2024

A good use case for this is AWX which has the messaging system disabled in tests.

We should add some @pytest.fixture methods that serve various off-the-shelf methods that other projects can use. Specifically I have in mind:

  • a context manager to ignore messages for duration it is active, what AWX does now, effectively.
  • a context manager to run a thread in the background, that listens to a multiprocessing.Queue, as its own kind of broker.

This would be a similar structure to:

https://github.com/ansible/django-ansible-base/tree/devel/ansible_base/lib/testing

This was referenced Feb 15, 2025
@AlanCoding AlanCoding changed the title Add dispatcher/testing/ utilities to help testing with no pg_notify Add dispatcher/testing/ utilities to help testing Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant