civics-cdf-validator 1.52.dev1__tar.gz → 1.52.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.
- {civics_cdf_validator-1.52.dev1/civics_cdf_validator.egg-info → civics_cdf_validator-1.52.dev2}/PKG-INFO +1 -1
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2/civics_cdf_validator.egg-info}/PKG-INFO +1 -1
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/rules.py +7 -6
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/version.py +1 -1
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/CONTRIBUTING.md +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/LICENSE-2.0.txt +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/MANIFEST.in +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/README.md +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/__init__.py +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/base.py +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/civics_cdf_validator.egg-info/SOURCES.txt +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/civics_cdf_validator.egg-info/dependency_links.txt +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/civics_cdf_validator.egg-info/entry_points.txt +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/civics_cdf_validator.egg-info/requires.txt +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/civics_cdf_validator.egg-info/top_level.txt +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/gpunit_rules.py +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/loggers.py +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/office_utils.py +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/setup.cfg +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/setup.py +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/stats.py +0 -0
- {civics_cdf_validator-1.52.dev1 → civics_cdf_validator-1.52.dev2}/validator.py +0 -0
|
@@ -3544,7 +3544,7 @@ class PartySpanMultipleCountries(base.BaseRule):
|
|
|
3544
3544
|
|
|
3545
3545
|
|
|
3546
3546
|
class NonExecutiveOfficeShouldHaveGovernmentBody(base.BaseRule):
|
|
3547
|
-
"""Ensure non-
|
|
3547
|
+
"""Ensure non-Head of Government/State Office elements have a government body defined."""
|
|
3548
3548
|
|
|
3549
3549
|
def __init__(self, election_tree, schema_tree, **kwargs):
|
|
3550
3550
|
self.is_post_office_split_feed = False
|
|
@@ -3562,13 +3562,14 @@ class NonExecutiveOfficeShouldHaveGovernmentBody(base.BaseRule):
|
|
|
3562
3562
|
element, self.is_post_office_split_feed
|
|
3563
3563
|
) and not _has_government_body(element):
|
|
3564
3564
|
raise loggers.ElectionInfo.from_message(
|
|
3565
|
-
"Non-
|
|
3565
|
+
"Non-Head of Government/State Office element is missing a government"
|
|
3566
|
+
" body.",
|
|
3566
3567
|
[element],
|
|
3567
3568
|
)
|
|
3568
3569
|
|
|
3569
3570
|
|
|
3570
3571
|
class ExecutiveOfficeShouldNotHaveGovernmentBody(base.BaseRule):
|
|
3571
|
-
"""Ensure
|
|
3572
|
+
"""Ensure Head of Government/State Office elements do not have a government body defined."""
|
|
3572
3573
|
|
|
3573
3574
|
def __init__(self, election_tree, schema_tree, **kwargs):
|
|
3574
3575
|
self.is_post_office_split_feed = False
|
|
@@ -3587,9 +3588,9 @@ class ExecutiveOfficeShouldNotHaveGovernmentBody(base.BaseRule):
|
|
|
3587
3588
|
) and _has_government_body(element):
|
|
3588
3589
|
office_roles = _get_office_roles(element, self.is_post_office_split_feed)
|
|
3589
3590
|
raise loggers.ElectionError.from_message(
|
|
3590
|
-
|
|
3591
|
-
"
|
|
3592
|
-
"bodies.",
|
|
3591
|
+
"Head of Government/State Office element (roles:"
|
|
3592
|
+
f" {','.join(office_roles)}) has a government body. Head of"
|
|
3593
|
+
" Government/State offices should not have government bodies.",
|
|
3593
3594
|
[element],
|
|
3594
3595
|
)
|
|
3595
3596
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|