civics-cdf-validator 1.55.dev2__tar.gz → 1.55.dev4__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.55.dev2/civics_cdf_validator.egg-info → civics_cdf_validator-1.55.dev4}/PKG-INFO +1 -1
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4/civics_cdf_validator.egg-info}/PKG-INFO +1 -1
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/rules.py +0 -46
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/version.py +1 -1
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/CONTRIBUTING.md +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/LICENSE-2.0.txt +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/MANIFEST.in +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/README.md +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/__init__.py +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/base.py +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/civics_cdf_validator.egg-info/SOURCES.txt +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/civics_cdf_validator.egg-info/dependency_links.txt +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/civics_cdf_validator.egg-info/entry_points.txt +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/civics_cdf_validator.egg-info/requires.txt +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/civics_cdf_validator.egg-info/top_level.txt +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/gpunit_rules.py +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/loggers.py +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/office_utils.py +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/setup.cfg +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/setup.py +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/stats.py +0 -0
- {civics_cdf_validator-1.55.dev2 → civics_cdf_validator-1.55.dev4}/validator.py +0 -0
|
@@ -4587,52 +4587,6 @@ class GovernmentBodyExternalId(base.BaseRule):
|
|
|
4587
4587
|
)
|
|
4588
4588
|
|
|
4589
4589
|
|
|
4590
|
-
class UnsupportedOfficeSchema(base.BaseRule):
|
|
4591
|
-
"""Fails if new unsupported office schema is used in the feed.
|
|
4592
|
-
|
|
4593
|
-
This rule will eventually be removed once the new schema is supported.
|
|
4594
|
-
"""
|
|
4595
|
-
|
|
4596
|
-
def elements(self):
|
|
4597
|
-
return ["Office"]
|
|
4598
|
-
|
|
4599
|
-
def check(self, element):
|
|
4600
|
-
if element.find("JurisdictionId") is not None:
|
|
4601
|
-
raise loggers.ElectionError.from_message(
|
|
4602
|
-
"Specifying JurisdictionId on Office is not yet supported."
|
|
4603
|
-
)
|
|
4604
|
-
if element.find("Level") is not None:
|
|
4605
|
-
raise loggers.ElectionError.from_message(
|
|
4606
|
-
"Specifying Level on Office is not yet supported."
|
|
4607
|
-
)
|
|
4608
|
-
if element.find("Role") is not None:
|
|
4609
|
-
raise loggers.ElectionError.from_message(
|
|
4610
|
-
"Specifying Role on Office is not yet supported."
|
|
4611
|
-
)
|
|
4612
|
-
if len(element.findall("SelectionMethod")) > 1:
|
|
4613
|
-
raise loggers.ElectionError.from_message(
|
|
4614
|
-
"Specifying multiple SelectionMethod elements on Office is not yet "
|
|
4615
|
-
"supported."
|
|
4616
|
-
)
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
class UnsupportedOfficeHolderTenureSchema(base.BaseRule):
|
|
4620
|
-
"""Fails if new unsupported officeholder tenure schema is used in the feed.
|
|
4621
|
-
|
|
4622
|
-
This rule will eventually be removed once the new schema is supported.
|
|
4623
|
-
"""
|
|
4624
|
-
|
|
4625
|
-
def elements(self):
|
|
4626
|
-
return ["ElectionReport"]
|
|
4627
|
-
|
|
4628
|
-
def check(self, element):
|
|
4629
|
-
if element.find("OfficeHolderTenureCollection") is not None:
|
|
4630
|
-
raise loggers.ElectionError.from_message(
|
|
4631
|
-
"Specifying OfficeHolderTenureCollection on ElectionReport is not "
|
|
4632
|
-
"yet supported."
|
|
4633
|
-
)
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
4590
|
class ElectoralCommissionCollectionExists(base.BaseRule):
|
|
4637
4591
|
"""ElectoralCommissionCollection should exist."""
|
|
4638
4592
|
|
|
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
|