Skip to content

Use the issue's Session object on issue.milestone #770

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
Jan 7, 2018

Conversation

sigmavirus24
Copy link
Owner

Without passing in "self" to the Milestone for the issue.milestone
attribute, we were getting a completely brand-new GitHubSession. This
meant that we were failing to use Betamax which caused our tests to be
unreliable and to bypass Betamax while running the test-suite.

Without passing in "self" to the Milestone for the issue.milestone
attribute, we were getting a completely brand-new GitHubSession. This
meant that we were failing to use Betamax which caused our tests to be
unreliable and to bypass Betamax while running the test-suite.
@sigmavirus24
Copy link
Owner Author

Perhaps that parameter shouldn't be optional. Hm

@sigmavirus24 sigmavirus24 merged commit f757c5f into develop Jan 7, 2018
@sigmavirus24 sigmavirus24 deleted the fix-milestone-labels-test branch January 7, 2018 13:30
omgjlk added a commit to omgjlk/github3.py that referenced this pull request Jan 25, 2018
Unless a session (or a self) is passed through a new session might be
created, which can lead to some interesting things. See sigmavirus24#770

This also adds a session class argument for PullDestination and updates
the calls to it.

A future commit will make the session argument of GitHubCore
nonoptional.

Related-to: sigmavirus24#771

Signed-off-by: Jesse Keating <omgjlk@github.com>
omgjlk added a commit to omgjlk/github3.py that referenced this pull request Jan 25, 2018
Unless a session (or a self) is passed through a new session might be
created, which can lead to some interesting things. See sigmavirus24#770

This also adds a session class argument for PullDestination and updates
the calls to it.

A future commit will make the session argument of GitHubCore
nonoptional.

Related-to: sigmavirus24#771

Signed-off-by: Jesse Keating <omgjlk@github.com>
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