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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

config: Add private_session config #36

Merged
merged 3 commits into from Jan 18, 2015
Merged

Conversation

chigley
Copy link
Contributor

@chigley chigley commented Jan 18, 2015

Hello. Thanks so much for Mopidy and the Spotify extension!

I occasionally find myself in situations in which I'd prefer my Spotify session to be private. This PR adds a private_session config value which can be used to do just that 馃槃

def test_on_start_configures_private_session(spotify_mock, config):
session = spotify_mock.Session.return_value
private_session_mock = mock.PropertyMock()
type(session).private_session = private_session_mock
Copy link
Member

Choose a reason for hiding this comment

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

The test fails, probably due to this line adding the mock to the wrong object. It's session.social.private_session, not session.private_session.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the fast response! Yeah, my bad, fixed in dfa3d3b and the CI build is passing now.

@jodal jodal added this to the v2.0 milestone Jan 18, 2015
@jodal jodal self-assigned this Jan 18, 2015
@jodal jodal added the C-enhancement Category: A PR with an enhancement or an issue with an enhancement proposal label Jan 18, 2015
jodal added a commit that referenced this pull request Jan 18, 2015
config: Add private_session config
@jodal jodal merged commit 95d8012 into mopidy:develop Jan 18, 2015
@jodal
Copy link
Member

jodal commented Jan 18, 2015

Thanks for a lovely pull request: a single specific change, with tests, docs, and perfect formatting. :-)

@chigley
Copy link
Contributor Author

chigley commented Jan 18, 2015

Heh, just a shame about the silly failing test really 馃槈 Thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: A PR with an enhancement or an issue with an enhancement proposal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants