Skip to content

Conversation

@Eldinnie
Copy link
Member

Remove unneeded and unused de_json and de_list methods from our library. The only usages for these methods in our lib were within each other's de_json methods and our tests.
Expect Travis to fail, let it run again when #788 is merged.

Fixes #778

@Eldinnie
Copy link
Member Author

tests passed. review wanted

Copy link
Member

@jsmnbom jsmnbom left a comment

Choose a reason for hiding this comment

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

Looks good to me, I think you got all the classes. Left two very minor comments though.

input_text_message_content_json = InputMessageContent.de_json(json_dict, bot)

assert input_text_message_content_json is None
def test_exspected_values(self, input_text_message_content):
Copy link
Member

Choose a reason for hiding this comment

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

Spelling error

def input_location_message_content():
return InputLocationMessageContent(TestInputLocationMessageContent.longitude,
TestInputLocationMessageContent.latitude)
return InputLocationMessageContent(longitude=TestInputLocationMessageContent.longitude,
Copy link
Member

Choose a reason for hiding this comment

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

Why did you add these as kwargs?
Throughout the rest of the test we pass as an arg if it's a arg and kwarg if kwarg.

Copy link
Member Author

Choose a reason for hiding this comment

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

because they were in the wrong order and adding kwargs was lazier then reversing the order. Will fix though

@Eldinnie
Copy link
Member Author

@bomjacob I addressed your review changes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🔌 enhancement pr description: enhancement 📋 pending-merge work status: pending-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove de_json from object that never use them

4 participants