Skip to content

Conversation

@shakeelmohamed
Copy link
Contributor

Closes #168

from __future__ import print_function

import unittest2

Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch

response = self.get("/services/server/info")
return _filter_content(_load_atom(response, MATCH_ENTRY_CONTENT))

def input(self, path, kind=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a big deal, but should we follow Go style practices of adding a new prefix to the declaration?

Like this
def new_input(self, path, kind=None):.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not if we want consistency, so I'm going to say let's not do that here

:return: A :class:`Input` object.
"""
return Input(self, path, kind=kind).refresh()
Copy link
Contributor

Choose a reason for hiding this comment

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

Non-blocking Personal Opinion: I like to see these operations broken down atomically because it makes things easier to debug.

new_input = Input(self, path, kind=kind)
new_input.refresh()
return new_input

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fair, I'm just following the style I used for job()

@shakeelmohamed shakeelmohamed merged commit 44eb11c into develop Feb 25, 2019
@shakeelmohamed shakeelmohamed deleted the perf/update-delete-input branch February 25, 2019 23:13
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.

3 participants