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

Support crumb and cookie to fetching data #49

Merged
merged 3 commits into from
Feb 14, 2024
Merged

Conversation

oscar811
Copy link
Contributor

@oscar811 oscar811 commented Feb 9, 2024

Some of Yahoo Finance APIs no longer working since missing crumb and cookies. Here is the changes to support crumb parameters and fix unit test failing issues.

Copy link
Owner

@ooples ooples left a comment

Choose a reason for hiding this comment

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

Overall these are great changes but I just want to see at least one negative unit test and one positive unit test for your crumb helper class

Copy link
Owner

Choose a reason for hiding this comment

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

These are good changes but you would need to add some unit tests for your crumb helper class with at least one positive and negative test case. Negative test case could be to assert that the exception is thrown when crumb is null or empty. Positive case could be to assert that crumb is not null or empty when everything is valid

Copy link
Owner

@ooples ooples left a comment

Choose a reason for hiding this comment

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

Great work overall and great job adding those 2 unit tests

@ooples ooples merged commit 1b35ca1 into ooples:master Feb 14, 2024
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.

2 participants