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

DemocracyClub / WhoCanIVoteFor / e1a02576-fed3-4822-b3d7-83768ed61fb1

09 Oct 2025 04:45PM UTC coverage: 58.669% (+0.1%) from 58.523%
e1a02576-fed3-4822-b3d7-83768ed61fb1

Pull #2299

circleci

chris48s
register markdown_subset filter, use it for candidate statements
Pull Request #2299: WIP render good markdown, but not bad markdown

11 of 11 new or added lines in 1 file covered. (100.0%)

268 existing lines in 11 files now uncovered.

2927 of 4989 relevant lines covered (58.67%)

0.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/wcivf/apps/people/helpers.py
1
import requests
×
2

UNCOV
3
from .models import PersonPost
×
4

5

6
def get_wikipedia_extract(wikipedia_url):
×
UNCOV
7
    base_url = "https://en.wikipedia.org/api/rest_v1/page/summary/"
×
UNCOV
8
    wiki_title = wikipedia_url.strip("/").split("/")[-1]
×
9
    url = "{}{}".format(base_url, wiki_title)
×
10

11
    print(url)
×
12
    resp = requests.get(url)
×
UNCOV
13
    if resp.status_code != 200:
×
14
        return None
×
UNCOV
15
    try:
×
16
        resp = resp.json()
×
UNCOV
17
    except Exception:
×
UNCOV
18
        return None
×
19

UNCOV
20
    return resp.get("extract", None)
×
21

22

UNCOV
23
def peopleposts_for_election_post(election, post):
×
UNCOV
24
    return PersonPost.objects.filter(election=election, post=post)
×
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