Skip to content

Conversation

@SourceryAI
Copy link
Contributor

Thanks for starring sourcery-ai/sourcery ✨ 🌟 ✨

Here's your pull request refactoring your most popular Python repo.

If you want Sourcery to refactor all your Python repos and incoming pull requests install our bot.

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch https://github.com/sourcery-ai-bot/pytest-socket master
git merge --ff-only FETCH_HEAD
git reset HEAD^

Comment on lines -59 to +63
if mark_arg and isinstance(mark_arg, str):
mark = '@pytest.mark.allow_hosts("{0}")'.format(mark_arg)
elif mark_arg and isinstance(mark_arg, list):
mark = '@pytest.mark.allow_hosts(["{0}"])'.format('","'.join(mark_arg))
if mark_arg:
if isinstance(mark_arg, str):
mark = '@pytest.mark.allow_hosts("{0}")'.format(mark_arg)
elif isinstance(mark_arg, list):
mark = '@pytest.mark.allow_hosts(["{0}"])'.format('","'.join(mark_arg))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Function assert_connect.assert_socket_connect refactored with the following changes:

@miketheman miketheman added the enhancement New feature or request label Mar 22, 2021
@miketheman miketheman merged commit 1117e59 into miketheman:master Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants