-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajoute un test de présence pour le fichier epcicom2020.xlsx (#198)
Co-authored-by: Allan - CodeWorks <[email protected]>
- Loading branch information
1 parent
929fd7e
commit c7587da
Showing
4 changed files
with
28 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
setup( | ||
name='OpenFisca-France-Local', | ||
version='6.11.5', | ||
version='6.11.6', | ||
author='OpenFisca Team', | ||
author_email='[email protected]', | ||
classifiers=[ | ||
|
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from os import chdir | ||
from pathlib import Path | ||
|
||
from openfisca_france import FranceTaxBenefitSystem | ||
from openfisca_france_local import epci_test_factory | ||
|
||
|
||
def test_epci_factory_path(tmp_path): | ||
''' | ||
Vérifie que le chemin utilisé dans la `epci_test_factory` | ||
est accessible quand le module est appellé depuis un autre projet | ||
''' | ||
# Change le dossier d'exécution pour simuler une utilisation dans un autre projet | ||
chdir(tmp_path) | ||
try: | ||
epci_test_factory.epci_reform(FranceTaxBenefitSystem()) | ||
finally: | ||
# Remet le dossier d'exécution à son état d'origine | ||
chdir(Path(__file__).parent) |
File renamed without changes.