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

Uniformise les tests avec la nouvelle API #1224

Merged
merged 7 commits into from
Dec 5, 2018
Merged

Uniformise les tests avec la nouvelle API #1224

merged 7 commits into from
Dec 5, 2018

Conversation

fpagnoux
Copy link
Member

@fpagnoux fpagnoux commented Nov 28, 2018

@fpagnoux
Copy link
Member Author

fpagnoux commented Nov 28, 2018

There is still an issue with Python 2, due to the lack of preservation of a dict order. Should probably be fixed in core.

@Morendil
Copy link
Contributor

Morendil commented Dec 1, 2018

Mise à jour pour refléter la suppression des scénarios dans openfisca/openfisca-core#716, KO pour l'instant en raison d'une feature init_single_entity non testée dans Core mais utilisée dans France.

Edit modifications reportées sur #1227

@fpagnoux
Copy link
Member Author

fpagnoux commented Dec 2, 2018 via email

@@ -53,6 +53,11 @@ class statut_marital(Variable):
definition_period = MONTH
set_input = set_input_dispatch_by_period

def formula(individu, period, parameters):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fpagnoux Je vois que les tests ne passent pas sans cette formule, or je ne suis pas certain d'avoir bien compris pourquoi.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enfoui dans les scénarios, il y avait un morceau de code qui faisait cette inférence

@@ -23,7 +23,7 @@ jobs:
name: Install dependencies
command: |
make build
# pip install --editable git+https://github.com/openfisca/openfisca-core.git@BRANCH_NAME#egg=OpenFisca-Core # use a specific branch of OpenFisca-Core
pip install --editable git+https://github.com/openfisca/openfisca-core.git@uniformize-tests-api#egg=OpenFisca-Core # use a specific branch of OpenFisca-Core
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ne pas oublier de supprimer ça.

Copy link
Member

@bonjourmauko bonjourmauko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Top !

@bonjourmauko bonjourmauko changed the title Adapt to Core v25 Uniformise les tests avec la nouvelle API Dec 5, 2018
@fpagnoux fpagnoux merged commit a9a1bad into master Dec 5, 2018
@Morendil Morendil deleted the unif-tests-api branch March 20, 2019 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants