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

Switch service check in the testing for the no_settings scenario #5

Open
mcdonnnj opened this issue May 1, 2024 · 1 comment
Open
Labels
blocked This issue or pull request is awaiting the outcome of another issue or pull request improvement This issue or pull request will add or improve functionality, maintainability, or ease of use test This issue or pull request adds or otherwise modifies test code

Comments

@mcdonnnj
Copy link
Member

mcdonnnj commented May 1, 2024

💡 Summary

We should uncomment the test logic to use the service.exists attribute when possible. We should remove the test that is currently in-place as a workaround when doing so.

Motivation and context

Currently a workaround is used to determine whether or not a service exists due to pytest-dev/pytest-testinfra#757. If pytest-dev/pytest-testinfra#754 is merged and a new release containing it is cut we can switch to using this more straightforward check.

Implementation notes

When uncommenting the code we should also remove the existing test as it will be superfluous.

@mcdonnnj mcdonnnj added blocked This issue or pull request is awaiting the outcome of another issue or pull request improvement This issue or pull request will add or improve functionality, maintainability, or ease of use test This issue or pull request adds or otherwise modifies test code labels May 1, 2024
@jsf9k
Copy link
Member

jsf9k commented May 28, 2024

@mcdonnnj - See pytest-dev/pytest-testinfra#767, which was released in version 10.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked This issue or pull request is awaiting the outcome of another issue or pull request improvement This issue or pull request will add or improve functionality, maintainability, or ease of use test This issue or pull request adds or otherwise modifies test code
Projects
None yet
Development

No branches or pull requests

2 participants