Skip to content

Commit

Permalink
add validation warning for missing website url for current terms
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshData committed Jan 31, 2017
1 parent 8dfb790 commit 2da1fee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/validate.py
Expand Up @@ -256,7 +256,11 @@ def check_term(term, prev_term, current=None, current_mocs=None):
if term.get("party") == "Independent" and term.get("caucus") not in ("Republican", "Democrat"):
error(rtyaml.dump({ "caucus": term.get("caucus") }) + " is invalid when party is Independent.")

# TODO: Check party_affiliations, url, and office information.
# Check website -- optional.
if not term.get("url"):
print(rtyaml.dump(term) + " is missing a website url.")

# TODO: Check party_affiliations and office information.

def report_vacancies(current_mocs):
for state, apportionment in state_apportionment.items():
Expand Down

0 comments on commit 2da1fee

Please sign in to comment.