Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change:
tests/test_api.py::TestAPI::test_missing_agent
, which can fail after running any of the 9 polluters :tests/test_execute.py::TestExecute::test_valid_execute
tests/test_get_attribute.py::TestGetAttribute::test_valid_bulk_request
tests/test_get_attribute.py::TestGetAttribute::test_valid_request
tests/test_list.py::TestList::test_invalid_path
tests/test_list.py::TestList::test_valid_request
tests/test_search.py::TestSearch::test_valid_search
tests/test_set_attribute.py::TestSetAttribute::test_valid_bulk_write
tests/test_set_attribute.py::TestSetAttribute::test_valid_request
tests/test_version.py::TestVersion::test_valid_version, but passes when it is run in isolation.
Reproduce the test failure:
python -m pytest tests/test_execute.py::TestExecute::test_valid_execute tests/test_api.py::TestAPI::test_missing_agent
tests/test_api.py::TestAPI::test_missing_agent
Expected Result:
tests/test_api.py::TestAPI::test_missing_agent
should pass when run after testtests/test_execute.py::TestExecute::test_valid_execute
or any of the other 9 polluters.Actual Result:
tests/test_api.py::TestAPI::test_missing_agent
fails when it is run after any of the polluters.Why the test fails:
Fix: