Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajoute un test de présence pour le fichier epcicom2020.xlsx #198

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Changelog
## [6.11.6] - 2024-01-18

_Pour les changements détaillés et les discussions associées, référencez la pull request [#198](https://github.com/openfisca/openfisca-france-local/pull/198)_

### Added

- Ajoute un test qui assure que le fichier 'epcicom2020.xlsx' sera trouvé lors d'utilisation externe

## [6.11.5] - 2024-01-16

_Pour les changements détaillés et les discussions associées, référencez la pull request [#200](https://github.com/openfisca/openfisca-france-local/pull/200)_
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[
Expand Down
19 changes: 19 additions & 0 deletions tests/reforms/epci_test_factory/test_epci_path.py
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)