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

Test member page data #4

Merged
merged 9 commits into from
Apr 28, 2017
Merged

Test member page data #4

merged 9 commits into from
Apr 28, 2017

Conversation

ondenman
Copy link
Contributor

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: I've added two TODO comments to 40e8def for issues #2 and #3.

Oliver Denman added 7 commits April 27, 2017 13:45
This step enables MemberPage to be extracted to its own file -- which is a
step towards running scraper_test against it
This step is required so that `scraper_test` can be run against
MemberPage#to_h.
Copy link
Contributor

@tmtmtmtm tmtmtmtm left a comment

Choose a reason for hiding this comment

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

It would be good to ensure that we're testing as many fields as possible. At the moment DOB/facebook/twitter are all essentially untested.

@tmtmtmtm tmtmtmtm assigned ondenman and unassigned tmtmtmtm Apr 27, 2017
Oliver Denman added 2 commits April 27, 2017 16:41
@tmtmtmtm tmtmtmtm merged commit e1ab449 into master Apr 28, 2017
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