Skip to content

Conversation

@mkucharz
Copy link
Member

@mkucharz mkucharz commented Jun 1, 2016

Not sure if it is right place...


data = {
'username': connection.username,
'password' : connection.password
Copy link
Member

Choose a reason for hiding this comment

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

obsolete whitespace before :

@23doors
Copy link
Member

23doors commented Jun 1, 2016

some test would be nice ;)

@mkucharz
Copy link
Member Author

mkucharz commented Jun 1, 2016

Now it can be used that way, we have to rethink how to do it in case we want to do it during the connection.

connection = syncano.connect(api_key='key', instance_name='picoblocks')
print connection.User().auth(username='maciej@kucharz.net', password='test123')

connection = self._get_connection()

if not (username and password):
raise SyncanoValueError('You need provide username and password!')
Copy link
Contributor

Choose a reason for hiding this comment

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

We usually use dots et the end of Exception msg.

@opalczynski
Copy link
Contributor

@mkucharz what about simple test case? I think that you can add it in integration_test_accounts:)

@opalczynski
Copy link
Contributor

LGTM.

@mkucharz mkucharz merged commit 357ee5e into develop Jun 2, 2016
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.

4 participants