civics-cdf-validator 1.55.dev1__tar.gz → 1.55.dev2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {civics_cdf_validator-1.55.dev1/civics_cdf_validator.egg-info → civics_cdf_validator-1.55.dev2}/PKG-INFO +1 -1
  2. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2/civics_cdf_validator.egg-info}/PKG-INFO +1 -1
  3. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/rules.py +8 -0
  4. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/version.py +1 -1
  5. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/CONTRIBUTING.md +0 -0
  6. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/LICENSE-2.0.txt +0 -0
  7. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/MANIFEST.in +0 -0
  8. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/README.md +0 -0
  9. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/__init__.py +0 -0
  10. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/base.py +0 -0
  11. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/civics_cdf_validator.egg-info/SOURCES.txt +0 -0
  12. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/civics_cdf_validator.egg-info/dependency_links.txt +0 -0
  13. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/civics_cdf_validator.egg-info/entry_points.txt +0 -0
  14. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/civics_cdf_validator.egg-info/requires.txt +0 -0
  15. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/civics_cdf_validator.egg-info/top_level.txt +0 -0
  16. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/gpunit_rules.py +0 -0
  17. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/loggers.py +0 -0
  18. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/office_utils.py +0 -0
  19. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/setup.cfg +0 -0
  20. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/setup.py +0 -0
  21. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/stats.py +0 -0
  22. {civics_cdf_validator-1.55.dev1 → civics_cdf_validator-1.55.dev2}/validator.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: civics_cdf_validator
3
- Version: 1.55.dev1
3
+ Version: 1.55.dev2
4
4
  Summary: Checks if an election feed follows best practices
5
5
  Home-page: https://github.com/google/civics_cdf_validator
6
6
  Author: Google Civics
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: civics_cdf_validator
3
- Version: 1.55.dev1
3
+ Version: 1.55.dev2
4
4
  Summary: Checks if an election feed follows best practices
5
5
  Home-page: https://github.com/google/civics_cdf_validator
6
6
  Author: Google Civics
@@ -1356,6 +1356,14 @@ class ValidateDuplicateColors(base.TreeRule):
1356
1356
  element=party_contest, element_name="PartyIds"
1357
1357
  ):
1358
1358
  for party_id in party_ids_element.text.split():
1359
+ if party_id not in party_color_mapping:
1360
+ warning_log.append(
1361
+ loggers.LogEntry(
1362
+ "Party (%s) in PartyContest should have an assigned color."
1363
+ % party_id
1364
+ )
1365
+ )
1366
+ continue
1359
1367
  party_color = party_color_mapping[party_id][0]
1360
1368
  if party_color in contest_colors:
1361
1369
  contest_colors[party_color].append(party_color_mapping[party_id][1])
@@ -5,4 +5,4 @@ No dependencies should be added to this module.
5
5
  See https://packaging.python.org/guides/single-sourcing-package-version/
6
6
  """
7
7
 
8
- __version__ = '1.55.dev1'
8
+ __version__ = '1.55.dev2'