Skip to content

remove de_json() #789

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

Merged
merged 3 commits into from
Sep 1, 2017
Merged

remove de_json() #789

merged 3 commits into from
Sep 1, 2017

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



@pytest.fixture(scope='class')
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
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy