Skip to content

Commit

Permalink
Test broken member image
Browse files Browse the repository at this point in the history
Instead of recording the url of the member's portrait, the scraper is getting the URL of a PDF icon.

Issue: everypolitician/everypolitician-data#33716
  • Loading branch information
Oliver Denman committed May 18, 2017
1 parent 7b23e63 commit 4d5ff8f
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 0 deletions.
123 changes: 123 additions & 0 deletions test/cassettes/wtk_htm.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions test/data/wtk.htm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
:class: MemberPage
:url: http://www.legco.gov.hk/general/english/members/yr16-20/wtk.htm
:to_h:
:id: yr16-20/wtk
:term: yr16-20
:name: WONG Ting-kwong
:honorific_prefix: Hon
:honorific_suffix: SBS, JP
:gender:
:faction: Democratic Alliance for the Betterment and Progress of Hong Kong
:email: tkwong@dab.org.hk
:website: ''
:phone: 2826 9152
:fax: 2826 9148
# TODO: The image is a PDF icon, not the member's photo.
# Issue: https://github.com/everypolitician/everypolitician-data/issues/33716
:img: http://www.legco.gov.hk/images/english/pdf.gif
:area: Import and Export
:area_type: functional
:source: http://www.legco.gov.hk/general/english/members/yr16-20/wtk.htm

0 comments on commit 4d5ff8f

Please sign in to comment.