Skip to content

Mock dns lookups in test_conn #1739

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

Merged
merged 1 commit into from
Mar 14, 2019
Merged

Mock dns lookups in test_conn #1739

merged 1 commit into from
Mar 14, 2019

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Mar 14, 2019

Small change to avoid doing dns resolution when running local connection tests.


This change is Reviewable

@@ -25,7 +32,7 @@ def _socket(mocker):


@pytest.fixture
def conn(_socket):
def conn(_socket, dns_lookup):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took me a moment to realize this fixture always provides a localhost... it'd be nice if there was a docstring explaining what this fixture is intended for and what it provides.

That's a more general comment about our fixtures though, as I've slowly waded through #1193 it's taken longer than it should have to follow the fixture paths because they aren't documented.

@jeffwidman jeffwidman merged commit 39dd8c2 into master Mar 14, 2019
@jeffwidman jeffwidman deleted the mock_dns_test_conn branch March 14, 2019 04: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.

2 participants