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

Fixtures: make the entry_points fixture publicly available #5745

Merged

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Nov 3, 2022

Also increase the timeout of the submit_and_await fixture which should get rid of tests failing sporadically. The five seconds timeout may have been a bit too tight.

The default of 5 seconds was a bit short causing certain tests to fail
randomly because the expected state was just not achieved in time.
Giving a timeout that is a bit more lenient will prevent these false
positives while still killing tests soon enough that will hang forever
otherwise.
@sphuber sphuber requested a review from unkcpz November 3, 2022 22:45
This fixture makes it easy to temporarily add or remove entry points
which comes in very handy when testing custom implementations of various
classes that are pluginnable. By moving them from `tests/conftest.py` to
the `aiida.manage.tests.pytest_fixtures` module, it can also be used by
plugin packages.
@sphuber sphuber force-pushed the fix/move-entry-point-fixture-to-public branch from 80f51c1 to 16ab747 Compare November 3, 2022 23:08
@sphuber sphuber merged commit db0c254 into aiidateam:main Nov 4, 2022
@sphuber sphuber deleted the fix/move-entry-point-fixture-to-public branch November 4, 2022 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant