Skip to content

Commit

Permalink
Clean tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benjello committed Nov 14, 2024
1 parent 878fe71 commit 598d216
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 103 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,19 @@ check-style:
@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764.
flake8 `git ls-files | grep "\.py$$"`

check-path-length:
@# Verify that there is no path exceeding Windows limit
python openfisca_tunisia_pension/scripts/check_path_length.py

check-yaml:
@# check yaml style
.github/lint-changed-yaml-tests.sh

check-all-yaml:
@# check yaml style
yamllint .
yamllint openfisca_tunisia_pension/parameters
yamllint tests

test: clean check-syntax-errors check-style
@# Launch tests from openfisca_tunisia_pension/tests directory (and not .) because TaxBenefitSystem must be initialized
@# before parsing source files containing formulas.
openfisca test --country-package openfisca_tunisia_pension openfisca_tunisia_pension/tests
openfisca test --country-package openfisca_tunisia_pension tests
Empty file.
50 changes: 0 additions & 50 deletions openfisca_tunisia_pension/tests/formulas/pension_rsna.yaml

This file was deleted.

This file was deleted.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ requires-python = ">= 3.9"
dependencies = [
'bottleneck >=1.3.2,<=2.0.0',
'numpy >=1.24.3, <2',
'openfisca-core[web-api] >=43, <44',
# 'openfisca-core[web-api] >=43, <44',
'openfisca-core[web-api] ==41.5.3',
'scipy >= 0.12',
]

Expand Down

0 comments on commit 598d216

Please sign in to comment.