civics-cdf-validator 1.52.dev1__py3-none-any.whl → 1.52.dev2__py3-none-any.whl

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.
@@ -3544,7 +3544,7 @@ class PartySpanMultipleCountries(base.BaseRule):
3544
3544
 
3545
3545
 
3546
3546
  class NonExecutiveOfficeShouldHaveGovernmentBody(base.BaseRule):
3547
- """Ensure non-executive Office elements have a government body defined."""
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-executive Office element is missing a government body.",
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 executive Office elements do not have a government body defined."""
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
- f"Executive Office element (roles: {','.join(office_roles)}) has a "
3591
- "government body. Executive offices should not have government "
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
 
@@ -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.52.dev1'
8
+ __version__ = '1.52.dev2'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: civics_cdf_validator
3
- Version: 1.52.dev1
3
+ Version: 1.52.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
@@ -3,13 +3,13 @@ civics_cdf_validator/base.py,sha256=5zntjAdAA-bdwYOOStFgUle9LGX_ccelS--thMhUG9A,
3
3
  civics_cdf_validator/gpunit_rules.py,sha256=Cg-qlOeVKTCQ5qUKYSxbVrrh3tdLt1X5Eg-7uyyR_SY,9487
4
4
  civics_cdf_validator/loggers.py,sha256=ZfWFd9yskcd2-qb83EPz7eqa1iGO8BRFMtDZeE1hofA,6921
5
5
  civics_cdf_validator/office_utils.py,sha256=aFxcFQZF2oBn0gPXt_kv1LxHGvwzABScT8X5yaYtVLw,2705
6
- civics_cdf_validator/rules.py,sha256=bEMNPx7UVsRHV2ixH1KuWqjgdqZ3J5QD5HAdMWY_0t4,164480
6
+ civics_cdf_validator/rules.py,sha256=4wC0RSkH312NiFOCSatR4emEoDg8mQQVWz7dfmxZoJg,164568
7
7
  civics_cdf_validator/stats.py,sha256=YNqv3Khkt_hJxCIunFBRSl23oXqu5gNjCmWMHFbAcSU,3819
8
8
  civics_cdf_validator/validator.py,sha256=2nwlFfQ9AmpTaO5n5ekaO845Rm0JPjNF-Il6FJW_50k,12678
9
- civics_cdf_validator/version.py,sha256=HMkQoETe62Ut-25W50H7t28Bg0xhqstkBSqinnRbX94,188
10
- civics_cdf_validator-1.52.dev1.dist-info/licenses/LICENSE-2.0.txt,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
11
- civics_cdf_validator-1.52.dev1.dist-info/METADATA,sha256=6X_XDnGYxvFbkZ7xuwq5opTxrfbyxzwaMB-7DgFGEXI,1008
12
- civics_cdf_validator-1.52.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
13
- civics_cdf_validator-1.52.dev1.dist-info/entry_points.txt,sha256=QibgvtMOocwDi7fQ1emgMJ2lIlI41sW0__KIQdnVn90,77
14
- civics_cdf_validator-1.52.dev1.dist-info/top_level.txt,sha256=PYT5Eclxbop5o6DJIcgs4IeU6Ds5jqyftjoFbgkkJYo,21
15
- civics_cdf_validator-1.52.dev1.dist-info/RECORD,,
9
+ civics_cdf_validator/version.py,sha256=TcoQgZyjD4N4X5l11Iiy42Kk2HxVshsqaFZyZiaAZ5M,188
10
+ civics_cdf_validator-1.52.dev2.dist-info/licenses/LICENSE-2.0.txt,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
11
+ civics_cdf_validator-1.52.dev2.dist-info/METADATA,sha256=UDt_WETdiaBgwxtNxHuJFkbTX12SusS-s3EN4vF98Os,1008
12
+ civics_cdf_validator-1.52.dev2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
13
+ civics_cdf_validator-1.52.dev2.dist-info/entry_points.txt,sha256=QibgvtMOocwDi7fQ1emgMJ2lIlI41sW0__KIQdnVn90,77
14
+ civics_cdf_validator-1.52.dev2.dist-info/top_level.txt,sha256=PYT5Eclxbop5o6DJIcgs4IeU6Ds5jqyftjoFbgkkJYo,21
15
+ civics_cdf_validator-1.52.dev2.dist-info/RECORD,,