• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mysociety / yournextrepresentative
74%
master: 51%

Build:
Build:
LAST BUILD BRANCH: liable-to-vandalism-in-db
DEFAULT BRANCH: master
Repo Added 29 Nov 2014 06:21PM UTC
Files 18
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH fix-twitter-case-issue
branch: fix-twitter-case-issue
CHANGE BRANCH
x
Reset
  • fix-twitter-case-issue
  • 104-persuasive-homepage
  • 123-footer
  • 124-candidate-parties
  • 130-candidate-editing
  • 143-add-parlparse-id-to-2010-mps
  • 146-profile-pages
  • 171-disclaimers
  • 183-login-page-improvements
  • 187-og-and-twitter-tags
  • 203-disable-submit-on-click
  • 246-allow-birth-year-or-dob
  • 271-store-twitter-ids
  • 319-add-vagrant-file
  • 379-add-more-tests
  • 383-generic-og-metadata
  • 416-update-csv-links
  • 53-favicon
  • 676-language-switcher
  • 692-winner-display
  • 749-other-names
  • 79-design-improvements
  • 855-prefill-party-dropdown-new-list-candidate
  • 856-show-elections-won-on-candidate-page
  • 862-search-with-apostrophe
  • 866-party-list-pos-person-view
  • 873-broken-jsonpatch-parsing
  • 896-log-photo-reject-reason
  • 931-uk-import-2010-winners
  • 935-confirm-inset-winners
  • 942-optional-election-areatype-admin
  • 943-settings-in-db
  • 951-candidates-dc-vs-who-in-seo
  • TUSC_emblem
  • add-attention-needed-page
  • add-cache-control
  • add-candidacy-historic-elections-option
  • add-candidate-pictures
  • add-coveralls
  • add-descriptions-and-joint-parties
  • add-honorifics
  • add-leaderboard
  • add-new-parlparse-ids
  • add-parlparse-to-csv
  • add-recent-changes
  • add-to-vandalism-list
  • add-winner-counts-to-api
  • allow-creation-from-manual-area-ids
  • allow-twitter-at
  • are-we-generic-yet
  • backports-including-needs-review
  • before-image-proxy
  • cache-popit-results
  • calls-to-action
  • candidates_ignored_slugs
  • changes-for-tls
  • changes_feed
  • close-signups
  • contesting
  • copyright-assignment-agreement
  • crontab-election-night-updates
  • csv-generation-improvements
  • d3-user-contributions-graph
  • data-cleaning
  • dc_logo
  • display-more-helpful-constituency-values
  • django-1.7
  • django-1.7-second-attempt
  • django-1.7-travis-no-migrate
  • djdt-to-try-on-staging
  • elected-button-party-list
  • feature/candidates-counts
  • feature/candidates-counts-small-change
  • feature/csv_export
  • feeds_unicode
  • fewer-consituencies-queries
  • field_drives
  • finer-grained-permissions
  • fix-add-candidate-button
  • fix-cached-counts-update
  • fix-fix-data-commands
  • fix-image-metadata
  • fix-membership-issues
  • fix-party-numbers-page-counts
  • fix-party-sets-javascript
  • fix-settings-validation
  • fix-stale-memberships-after-merging
  • fix-standalone-create-person-form
  • fix-tests
  • fix-update-from-ec-unicode-errors
  • flash-photo-review-action-results
  • further-genericization
  • generic-elections
  • group-elections
  • homepage-form-margin
  • image-queue
  • image-queue-upload
  • improve-finder-validation
  • improve-mirroring
  • incomplete_field_lists
  • issues/380-electionmixin
  • issues/395-argentina-design
  • issues/395-homepage-styling
  • issues/395-styling-fixes
  • javascript-add-candidacy
  • ke-2017
  • ke-frontpage-tests
  • ke-mzalendo-link
  • ke-search-label-change
  • liable-to-vandalism-in-db
  • linkedin-in-csv
  • linkify-photo-review-sources
  • lock-constituencies
  • make-primary-photo-review-option
  • mark-incumbents-as-standing
  • master
  • merge-people
  • no-error-emails-on-popit-404
  • no-exact-md5sum-test
  • noddy-posts-cache
  • not-all-constituencies
  • notification-of-photos-for-review
  • numbers_json
  • only-install-django-once
  • party-page
  • party-page-responsive
  • party_id_in_csv
  • photo-review-improvements
  • photo_upload_help
  • popit-down-middleware
  • possibly-simplify-numbers
  • ppc-importer-updates
  • privacy-policy
  • progressive-add-candidacy-basic
  • refactor-person-handling-squashed
  • remove-bad-twitter-data
  • remove_ff_banner
  • replace-constituency-name-aargh
  • reproduce-popit-pagination-error
  • restrict-renaming
  • result-recorders
  • results-feed-updates
  • run-on-heroku
  • search_links
  • small-wording-updates
  • staging-with-robots-txt
  • stale-popit-workaround
  • stronger-source-hints
  • suggest-face-crop-in-review
  • switch-ga-to-secondary-domain
  • switch-to-image-proxy-thumbnails
  • switch-to-libsass-and-upgrade-pipeline
  • switch-to-photo-upload-radio-buttons
  • test-fix
  • trans-lang-select
  • translatable
  • turn-off-edits-stupidly
  • twitter_list
  • update-about-page
  • update-about-page-post-copyright-assignment
  • update-db-settings
  • update-face-detection-use-of-pillow
  • update-parties
  • update-party-update
  • wip-add-descriptions

pending completion
2653

push

travis-ci

Mark Longair
Normalize Twitter screen name case for use as dict keys

The script was erroneously reporting that some Twitter accounts couldn't
be found because keys in the screen_name_to_user_id used the canonical
capitalization from Twitter, while the screen names in YNR's database
might use completely different case.

This commit fixes that by making sure that when storing or looking up
key / value paires in the screen_name_to_user_id dict, the key is
normalized to lower-case first.

7103 of 9655 relevant lines covered (73.57%)

2.21 hits per line

Relevant lines Covered
Build:
Build:
9655 RELEVANT LINES 7103 COVERED LINES
2.21 HITS PER LINE
Source Files on fix-twitter-case-issue
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
2653 fix-twitter-case-issue Normalize Twitter screen name case for use as dict keys The script was erroneously reporting that some Twitter accounts couldn't be found because keys in the screen_name_to_user_id used the canonical capitalization from Twitter, while the screen ... push 28 Apr 2016 10:15AM UTC Mark Longair travis-ci pending completion  
See All Builds (1290)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc