-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #686 from ElectionDataAnalysis/issue683-tests
Test new juris files (#683, in part)
- Loading branch information
Showing
28 changed files
with
237 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/election_data_analysis/juris_and_munger/jurisdiction_templates/Election.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Name ElectionType | ||
2020 General Runoff runoff | ||
2020 General general | ||
2020 Primary primary | ||
2018 General general | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ Republican Party | |
Green Party | ||
Libertarian Party | ||
Independent | ||
Nonpartisan | ||
Nonpartisan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/000_data_for_pytest/JurisdictionPrepper_reference_files/BallotMeasureContest.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Name ElectionDistrict Election |
1 change: 1 addition & 0 deletions
1
tests/000_data_for_pytest/JurisdictionPrepper_reference_files/Candidate.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
BallotName |
19 changes: 19 additions & 0 deletions
19
tests/000_data_for_pytest/JurisdictionPrepper_reference_files/CandidateContest.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Name NumberElected Office PrimaryParty | ||
MP House District 1 1 MP House District 1 | ||
MP House District 2 1 MP House District 2 | ||
MP House District 3 1 MP House District 3 | ||
MP House District 4 1 MP House District 4 | ||
MP House District 5 1 MP House District 5 | ||
MP House District 6 1 MP House District 6 | ||
MP House District 7 1 MP House District 7 | ||
MP Senate District 1 1 MP Senate District 1 | ||
MP Senate District 2 1 MP Senate District 2 | ||
MP Senate District 3 1 MP Senate District 3 | ||
US House MP District 1 1 US House MP District 1 | ||
US President (MP) 1 US President (MP) | ||
MP Governor 1 MP Governor | ||
US Senate MP 1 US Senate MP | ||
MP Attorney General 1 MP Attorney General | ||
MP Lieutenant Governor 1 MP Lieutenant Governor | ||
MP Treasurer 1 MP Treasurer | ||
MP Secretary of State 1 MP Secretary of State |
6 changes: 6 additions & 0 deletions
6
tests/000_data_for_pytest/JurisdictionPrepper_reference_files/Election.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Name ElectionType | ||
2020 General Runoff runoff | ||
2020 General general | ||
2020 Primary primary | ||
2018 General general | ||
2016 General general |
40 changes: 40 additions & 0 deletions
40
tests/000_data_for_pytest/JurisdictionPrepper_reference_files/MP_starter_dictionary.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
cdf_element cdf_internal_name raw_identifier_value | ||
CandidateContest MP House District 1 MP House District 1 | ||
CandidateContest MP House District 2 MP House District 2 | ||
CandidateContest MP House District 3 MP House District 3 | ||
CandidateContest MP House District 4 MP House District 4 | ||
CandidateContest MP House District 5 MP House District 5 | ||
CandidateContest MP House District 6 MP House District 6 | ||
CandidateContest MP House District 7 MP House District 7 | ||
CandidateContest MP Senate District 1 MP Senate District 1 | ||
CandidateContest MP Senate District 2 MP Senate District 2 | ||
CandidateContest MP Senate District 3 MP Senate District 3 | ||
CandidateContest US House MP District 1 US House MP District 1 | ||
CandidateContest US President (MP) US President (MP) | ||
CandidateContest MP Governor MP Governor | ||
CandidateContest US Senate MP US Senate MP | ||
CandidateContest MP Attorney General MP Attorney General | ||
CandidateContest MP Lieutenant Governor MP Lieutenant Governor | ||
CandidateContest MP Treasurer MP Treasurer | ||
CandidateContest MP Secretary of State MP Secretary of State | ||
Election 2020 General Runoff 2020 General Runoff | ||
Election 2020 General 2020 General | ||
Election 2020 Primary 2020 Primary | ||
Election 2018 General 2018 General | ||
Election 2016 General 2016 General | ||
Party Democratic Party Democratic Party | ||
Party Republican Party Republican Party | ||
Party Green Party Green Party | ||
Party Libertarian Party Libertarian Party | ||
ReportingUnit Northern Mariana Islands;MP House District 1 Northern Mariana Islands;MP House District 1 | ||
ReportingUnit Northern Mariana Islands;MP House District 2 Northern Mariana Islands;MP House District 2 | ||
ReportingUnit Northern Mariana Islands;MP House District 3 Northern Mariana Islands;MP House District 3 | ||
ReportingUnit Northern Mariana Islands;MP House District 4 Northern Mariana Islands;MP House District 4 | ||
ReportingUnit Northern Mariana Islands;MP House District 5 Northern Mariana Islands;MP House District 5 | ||
ReportingUnit Northern Mariana Islands;MP House District 6 Northern Mariana Islands;MP House District 6 | ||
ReportingUnit Northern Mariana Islands;MP House District 7 Northern Mariana Islands;MP House District 7 | ||
ReportingUnit Northern Mariana Islands;MP Senate District 1 Northern Mariana Islands;MP Senate District 1 | ||
ReportingUnit Northern Mariana Islands;MP Senate District 2 Northern Mariana Islands;MP Senate District 2 | ||
ReportingUnit Northern Mariana Islands;MP Senate District 3 Northern Mariana Islands;MP Senate District 3 | ||
ReportingUnit Northern Mariana Islands;US House MP District 1 Northern Mariana Islands;US House MP District 1 | ||
ReportingUnit Northern Mariana Islands Northern Mariana Islands |
19 changes: 19 additions & 0 deletions
19
tests/000_data_for_pytest/JurisdictionPrepper_reference_files/Office.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Name ElectionDistrict | ||
MP House District 1 Northern Mariana Islands;MP House District 1 | ||
MP House District 2 Northern Mariana Islands;MP House District 2 | ||
MP House District 3 Northern Mariana Islands;MP House District 3 | ||
MP House District 4 Northern Mariana Islands;MP House District 4 | ||
MP House District 5 Northern Mariana Islands;MP House District 5 | ||
MP House District 6 Northern Mariana Islands;MP House District 6 | ||
MP House District 7 Northern Mariana Islands;MP House District 7 | ||
MP Senate District 1 Northern Mariana Islands;MP Senate District 1 | ||
MP Senate District 2 Northern Mariana Islands;MP Senate District 2 | ||
MP Senate District 3 Northern Mariana Islands;MP Senate District 3 | ||
US House MP District 1 Northern Mariana Islands;US House MP District 1 | ||
US President (MP) Northern Mariana Islands | ||
MP Governor Northern Mariana Islands | ||
US Senate MP Northern Mariana Islands | ||
MP Attorney General Northern Mariana Islands | ||
MP Lieutenant Governor Northern Mariana Islands | ||
MP Treasurer Northern Mariana Islands | ||
MP Secretary of State Northern Mariana Islands |
5 changes: 5 additions & 0 deletions
5
tests/000_data_for_pytest/JurisdictionPrepper_reference_files/Party.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Name | ||
Democratic Party | ||
Republican Party | ||
Green Party | ||
Libertarian Party |
13 changes: 13 additions & 0 deletions
13
tests/000_data_for_pytest/JurisdictionPrepper_reference_files/ReportingUnit.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Name ReportingUnitType | ||
Northern Mariana Islands;MP House District 1 state-house | ||
Northern Mariana Islands;MP House District 2 state-house | ||
Northern Mariana Islands;MP House District 3 state-house | ||
Northern Mariana Islands;MP House District 4 state-house | ||
Northern Mariana Islands;MP House District 5 state-house | ||
Northern Mariana Islands;MP House District 6 state-house | ||
Northern Mariana Islands;MP House District 7 state-house | ||
Northern Mariana Islands;MP Senate District 1 state-senate | ||
Northern Mariana Islands;MP Senate District 2 state-senate | ||
Northern Mariana Islands;MP Senate District 3 state-senate | ||
Northern Mariana Islands;US House MP District 1 congressional | ||
Northern Mariana Islands territory |
1 change: 1 addition & 0 deletions
1
tests/000_data_for_pytest/JurisdictionPrepper_reference_files/dictionary.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cdf_element cdf_internal_name raw_identifier_value |
1 change: 1 addition & 0 deletions
1
tests/000_data_for_pytest/jurisdiction_templates/BallotMeasureContest.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Name ElectionDistrict Election |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
BallotName |
1 change: 1 addition & 0 deletions
1
tests/000_data_for_pytest/jurisdiction_templates/CandidateContest.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Name NumberElected Office PrimaryParty |
6 changes: 6 additions & 0 deletions
6
tests/000_data_for_pytest/jurisdiction_templates/Election.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Name ElectionType | ||
2020 General Runoff runoff | ||
2020 General general | ||
2020 Primary primary | ||
2018 General general | ||
2016 General general |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Name ElectionDistrict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Name | ||
Democratic Party | ||
Republican Party | ||
Green Party | ||
Libertarian Party |
1 change: 1 addition & 0 deletions
1
tests/000_data_for_pytest/jurisdiction_templates/ReportingUnit.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Name ReportingUnitType |
1 change: 1 addition & 0 deletions
1
tests/000_data_for_pytest/jurisdiction_templates/dictionary.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cdf_element cdf_internal_name raw_identifier_value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
tests/jurisdiction_prepper_tests/jurisdiction_prep.ini_for_test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[election_data_analysis] | ||
name=Northern Mariana Islands | ||
reporting_unit_type=territory | ||
abbreviated_name=MP | ||
count_of_state_house_districts=7 | ||
count_of_state_senate_districts=3 | ||
count_of_us_house_districts=1 | ||
|
Oops, something went wrong.