-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test: Test Options attributes separately (#23)
# Context * Regarding issue #15, we need to introduce `options` as a parameter to validate a given French value. Previously, options were not tested individually. So, the goal of this PR is to test options independently, create and test various combinations to ensure we achieve the desired behavior. fixes #15
- Loading branch information
Showing
39 changed files
with
219,677 additions
and
219,596 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
from typing import Dict, Set | ||
from typing import Dict, FrozenSet | ||
|
||
from frformat import geo_enum_format | ||
from frformat.geo.canton_set import CANTON_SET_COG_2023, CANTON_SET_COG_2024 | ||
from frformat.geo.canton_frozenset import CANTON_COG_2023, CANTON_COG_2024 | ||
from frformat.geo_enum_format import Millesime | ||
|
||
name = "Nom de canton" | ||
description = "Vérifie que le nom de canton est un canton ou pseudo-canton français valide pour un Code Officiel Géographique donné" | ||
all_cog_versions: Dict[Millesime, Set[str]] = { | ||
Millesime.A2023: CANTON_SET_COG_2023, | ||
Millesime.A2024: CANTON_SET_COG_2024, | ||
all_cog_versions: Dict[Millesime, FrozenSet[str]] = { | ||
Millesime.A2023: CANTON_COG_2023, | ||
Millesime.A2024: CANTON_COG_2024, | ||
} | ||
Canton = geo_enum_format.new("Canton", name, description, all_cog_versions) |
Oops, something went wrong.