-
Notifications
You must be signed in to change notification settings - Fork 183
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
Move fixtures from test/test_dev.py file #1124
Closed
dorothykiz1
wants to merge
4
commits into
airspeed-velocity:master
from
dorothykiz1:move_fixtures011
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the reasoning here? Why do you think this is the best solution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could have used * operator to pack the remaining elements into a list but since it was a single element remaining to be returned i decided to use _ the dummy variable to unpack it (as what was expected was 3 and the values returned on the left were 4 , the remaining element had no variable, i assigned a dummy variable _)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you check why the function returns 4, and 3 are expected? My question is not about why underscore or star. The question is why if this used to return 3, why it now returns 4, and receiving one more parameter is your preferred solution (as opposed to make the function to keep returning 3, as it was before)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes,An extra variable machine_file was added to be returned that stores the hostname machine details. This makes the variables to be returned 4, and yet when the function was being called in different files earlier it was unpacking 3 variables, hence the need to add the dummy variable to match what the function is returning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. But this don't make sense. The reason why a different number of variables are being returned is because with your changes, a different function is being called. So different things are happening in the tests in your branch, and in master. Which is obviously something we don't want, unless you've got a reason to change the behavior, which doesn't seem it is the case.