-
Notifications
You must be signed in to change notification settings - Fork 29
Feature/improve decoder bunq/sdk python#42 #56
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
Conversation
bunq/__init__.py
Outdated
for class_string in dir(endpoint): | ||
class_ = getattr(endpoint, class_string) | ||
|
||
if not inspect.isclass(class_): |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spaces around =
?
There was a problem hiding this comment.
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 . 👍
bunq/sdk/json/adapters.py
Outdated
|
||
class AnchoredObjectModelAdapter(converter.JsonAdapter): | ||
|
||
_ERROR_MODEL_NOT_FOUND = '{} is not in endpoint nor object' |
There was a problem hiding this comment.
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?
@JvanHengel Please 👀 again |
@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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move import statement up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@andrederoos yours |
Closes #50
Closes #42