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

Block sockets for unit-tests #4803

Merged
merged 3 commits into from
May 16, 2023
Merged

Block sockets for unit-tests #4803

merged 3 commits into from
May 16, 2023

Conversation

eyurtsev
Copy link
Collaborator

Block usage of sockets during unit tests

Catch any tests that attempt to use the network.

@vowelparrot
Copy link
Contributor

Is this principally for the tracers? We may have to add/fix some patches that may have been missed

@eyurtsev
Copy link
Collaborator Author

@vowelparrot just making sure that unit tests don't attempt to reach out to outside systems. the lib provides a decorator that allows a given unit test to reach out to a specific url/ip address

@eyurtsev eyurtsev merged commit c3b6129 into master May 16, 2023
@eyurtsev eyurtsev deleted the eugene/pytest_socket branch May 16, 2023 18:41
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.

3 participants