-
Notifications
You must be signed in to change notification settings - Fork 1
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
Test member data #3
base: master
Are you sure you want to change the base?
Conversation
This step is in preparation of testing MemberLink with scraper_test
5e70915
to
d887903
Compare
d887903
to
a737aee
Compare
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.
There isn't really much value in adding tests like these when the scraper is so badly broken. It would be much better to add a real data test, and then make it work.
…of course, the target class is a fragment. What I really need to test is a subset of MembersPage. |
I've opened a separate PR for the first three commits. #4 |
Tests scraper output against YAML file.
MemberPage#to_h should match the data specified in the YAML.
Part of everypolitician/everypolitician#600 (Ensure every scraper that has been ported to Scraped has a basic YAML test for at least one person)
Note: The
MemberLink
class is not scraping data correctly. The image field is populated with the page url and all other fields are empty. I've left a note in the test data and have opened an issue: #2