Fix test warnings and errors under pytest #167
Merged
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.
This is prep work for adding some integration tests to this repository. I would like to be able to use pytest fixtures as part of the integration tests, but in order to do that we need to ensure that the existing tests run cleanly under pytest.
I tried running the test suite using pytest, and while it mostly works, there were a number of errors and warnings that cropped up. Primarily:
We need to catch exceptions in threads spawned during the test process.
We need to pass valid UUIDs to anything expecting a UUID; failure to do so yields a warning. So many warnings.
With this pull request, all tests run cleanly under pytest. There are still warnings, but they all come from third party modules and so are somebody else's problem.