-
Notifications
You must be signed in to change notification settings - Fork 26
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
tests: fix travis trouble with pytest-invenio #981
tests: fix travis trouble with pytest-invenio #981
Conversation
Last days a [new pytest-invenio 1.2.2 version](inveniosoftware/pytest-invenio@9a5d15b) was released. It downgrades our pytest-flask from 1.0.0 to 0.15.1 and our Flask from 1.1.2 to 1.04. These changes break our tests. Mainly with Flask and werkzeug problems. Cf. https://travis-ci.org/github/blankoworld/rero-ils/jobs/684571964#L1905 For now, this commit limits tests problem by keeping our pytest-invenio version, pytest-flask and Flask. * Fix pytest-invenio to 1.2.1 to avoid problems in our tests Co-Authored-by: Olivier DOSSMANN <[email protected]>
a96b4f6
to
6ebf102
Compare
@@ -726,7 +726,8 @@ def test_update_loan_pickup_location( | |||
) | |||
assert res.status_code == 200 | |||
assert data.get('pickup_location_pid') == new_loc_pid | |||
# Change loan state to 'ITEM_AT_DESK' | |||
# Change loan state to 'ITEM_AT_DESK'. | |||
# WARNING: Use loan from test_patron_checkouts_order (item3_lib_martigny) |
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.
Is this a valid comment? because it is using the item3_lib_martigny
# WARNING: Use loan from test_patron_checkouts_order (item3_lib_martigny)
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.
Yes! This explain that we use an item from a previous test!
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.
Is it really related to this commit?
Last days a [new pytest-invenio 1.2.2 version](inveniosoftware/pytest-invenio@9a5d15b) was released. It downgrades our pytest-flask from 1.0.0 to 0.15.1 and our Flask from 1.1.2 to 1.04. These changes break our tests. Mainly with Flask and werkzeug problems. Cf. https://travis-ci.org/github/blankoworld/rero-ils/jobs/684571964#L1905 We created a PR to fix quickly the problem: Cf. rero#981. But we need to improve our Pipfile, especially the [dev] section. This commit upgrade our Pipfile to follow invenio recommandations. Co-Authored-by: Olivier DOSSMANN <[email protected]>
@@ -726,7 +726,8 @@ def test_update_loan_pickup_location( | |||
) | |||
assert res.status_code == 200 | |||
assert data.get('pickup_location_pid') == new_loc_pid | |||
# Change loan state to 'ITEM_AT_DESK' | |||
# Change loan state to 'ITEM_AT_DESK'. | |||
# WARNING: Use loan from test_patron_checkouts_order (item3_lib_martigny) |
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.
Is it really related to this commit?
Last days a new pytest-invenio 1.2.2 version was released.
It downgrades our pytest-flask from 1.0.0 to 0.15.1 and our Flask from
1.1.2 to 1.04.
These changes break our tests. Mainly with Flask and werkzeug problems.
Cf. https://travis-ci.org/github/blankoworld/rero-ils/jobs/684571964#L1905
For now, this commit limits tests problem by keeping our pytest-invenio
version, pytest-flask and Flask.
Co-Authored-by: Olivier DOSSMANN [email protected]
Why are you opening this PR?
This should fix the issue about tests like here: https://travis-ci.org/github/rero/rero-ils/jobs/684554447
How to test?
Code review check list