-
Notifications
You must be signed in to change notification settings - Fork 76
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
Use PyTest #746
Use PyTest #746
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
all: test | ||
|
||
uninstall: | ||
pip freeze | grep -v "^-e" | xargs pip uninstall -y | ||
|
||
install: | ||
pip install --upgrade pip twine wheel | ||
pip install --editable .[dev] --upgrade | ||
|
@@ -21,8 +24,8 @@ format-style: | |
@# `make` needs `$$` to output `$`. Ref: http://stackoverflow.com/questions/2382764. | ||
autopep8 `git ls-files | grep "\.py$$"` | ||
|
||
test: clean check-syntax-errors check-style | ||
nosetests | ||
test: clean check-syntax-errors format-style check-style | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Now tests pass with bad style because autopep8 fixes the style before flake8, but the style fix are not commited! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for catching this! A slightly longer comment in the main discussion. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops ! Thanks for pointing that out @fpagnoux |
||
pytest | ||
|
||
api: | ||
openfisca serve --country-package openfisca_country_template --extensions openfisca_extension_template |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.