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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/improve decoder bunq/sdk python#42 #56

Merged
merged 10 commits into from
Dec 21, 2017

Conversation

OGKevin
Copy link
Contributor

@OGKevin OGKevin commented Dec 20, 2017

Closes #50
Closes #42

@OGKevin OGKevin added this to the 0.12.4 milestone Dec 20, 2017
@OGKevin OGKevin self-assigned this Dec 20, 2017
bunq/__init__.py Outdated
for class_string in dir(endpoint):
class_ = getattr(endpoint, class_string)

if not inspect.isclass(class_):

Choose a reason for hiding this comment

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

Duplication, extract please

@@ -65,8 +67,12 @@ class TestNotificationUrl(bunq_test.BunqSdkTestCase):
def execute_notification_url_test(self,
file_path,
class_name,
getter_name):
getter_name,
sub_class_expected_object_name=None,

Choose a reason for hiding this comment

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

Spaces around =?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is python standard for optional arguments . 👍


class AnchoredObjectModelAdapter(converter.JsonAdapter):

_ERROR_MODEL_NOT_FOUND = '{} is not in endpoint nor object'

Choose a reason for hiding this comment

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

. at the end of sentence?

@OGKevin
Copy link
Contributor Author

OGKevin commented Dec 21, 2017

@JvanHengel Please 👀 again

@OGKevin
Copy link
Contributor Author

OGKevin commented Dec 21, 2017

@andrederoos All yours please 👀

bunq/__init__.py Outdated
@@ -14,6 +14,8 @@ def initialize_converter():
from bunq.sdk.json import adapters
from bunq.sdk.json import converter
from bunq.sdk.model.generated import object_
from bunq.sdk.model.generated import endpoint
import inspect
Copy link
Contributor

Choose a reason for hiding this comment

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

move import statement up

Copy link
Contributor Author

@OGKevin OGKevin Dec 21, 2017

Choose a reason for hiding this comment

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

Done

@OGKevin
Copy link
Contributor Author

OGKevin commented Dec 21, 2017

@andrederoos yours

@andrederoos andrederoos merged commit 75e88d0 into develop Dec 21, 2017
@OGKevin OGKevin deleted the feature/improve-decoder_bunq/sdk_python#42 branch December 24, 2017 18:02
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.

None yet

3 participants