civics-cdf-validator 1.47.dev1__tar.gz → 1.47.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.47.dev1/civics_cdf_validator.egg-info → civics_cdf_validator-1.47.dev2}/PKG-INFO +1 -1
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2/civics_cdf_validator.egg-info}/PKG-INFO +1 -1
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/rules.py +9 -7
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/version.py +1 -1
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/CONTRIBUTING.md +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/LICENSE-2.0.txt +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/MANIFEST.in +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/README.md +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/__init__.py +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/base.py +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/civics_cdf_validator.egg-info/SOURCES.txt +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/civics_cdf_validator.egg-info/dependency_links.txt +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/civics_cdf_validator.egg-info/entry_points.txt +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/civics_cdf_validator.egg-info/requires.txt +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/civics_cdf_validator.egg-info/top_level.txt +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/gpunit_rules.py +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/loggers.py +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/office_utils.py +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/setup.cfg +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/setup.py +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/stats.py +0 -0
- {civics_cdf_validator-1.47.dev1 → civics_cdf_validator-1.47.dev2}/validator.py +0 -0
|
@@ -3865,10 +3865,12 @@ class FeedInactiveDateSetForNonEvergreenFeed(base.BaseRule):
|
|
|
3865
3865
|
class UnreferencedEntitiesBase(base.TreeRule):
|
|
3866
3866
|
"""All non-top-level entities in a feed should be referenced by at least one other entity.
|
|
3867
3867
|
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3868
|
+
In the context of this rule, top-level means that an entity is not expected to
|
|
3869
|
+
be referenced by anything else in the feed. This base class allows derived
|
|
3870
|
+
rules to specify the set of top-level and warning-level entities since these
|
|
3871
|
+
differ by feed type. The rule is an info for gpunits (as long as they have
|
|
3872
|
+
ComposingGpunitIds) since top-level gpunits may exist solely to contain
|
|
3873
|
+
others.
|
|
3872
3874
|
"""
|
|
3873
3875
|
|
|
3874
3876
|
def __init__(
|
|
@@ -3966,17 +3968,17 @@ class UnreferencedEntitiesElectionDates(UnreferencedEntitiesBase):
|
|
|
3966
3968
|
|
|
3967
3969
|
|
|
3968
3970
|
class UnreferencedEntitiesOfficeholders(UnreferencedEntitiesBase):
|
|
3969
|
-
"""CDF offices are top-level in officeholders feeds.
|
|
3971
|
+
"""CDF offices and party leadership entities are top-level in officeholders feeds.
|
|
3970
3972
|
|
|
3971
3973
|
This rule is a warning for CDF parties since we ask for all parties for some
|
|
3972
|
-
LatAm feeds
|
|
3974
|
+
LatAm feeds.
|
|
3973
3975
|
"""
|
|
3974
3976
|
|
|
3975
3977
|
def __init__(self, election_tree, schema_tree, **kwargs):
|
|
3976
3978
|
super(UnreferencedEntitiesOfficeholders, self).__init__(
|
|
3977
3979
|
election_tree,
|
|
3978
3980
|
schema_tree,
|
|
3979
|
-
frozenset(["Office"]),
|
|
3981
|
+
frozenset(["Office", "Leadership"]),
|
|
3980
3982
|
frozenset(["Party"]),
|
|
3981
3983
|
**kwargs,
|
|
3982
3984
|
)
|
|
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
|