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

tests: fix travis trouble with pytest-invenio #981

Merged
merged 1 commit into from
May 11, 2020

Conversation

blankoworld
Copy link
Contributor

@blankoworld blankoworld commented May 8, 2020

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.

  • Fix pytest-invenio to 1.2.1 to avoid problems in our tests

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?

  • Check Travis tests
  • Check changes in Pipefile and Pipfile.lock

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Extracted translations?

@blankoworld blankoworld marked this pull request as ready for review May 9, 2020 20:17
@blankoworld blankoworld requested review from jma and rerowep May 9, 2020 20:18
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]>
@blankoworld blankoworld force-pushed the doo-fix-flask-downgrade-problem branch from a96b4f6 to 6ebf102 Compare May 10, 2020 12:16
@blankoworld blankoworld requested a review from BadrAly May 10, 2020 13:21
@@ -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)
Copy link

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)

Copy link
Contributor Author

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!

Copy link
Contributor

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?

@blankoworld blankoworld requested a review from jma May 11, 2020 09:12
blankoworld added a commit to blankoworld/rero-ils that referenced this pull request May 11, 2020
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)
Copy link
Contributor

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?

@blankoworld blankoworld merged commit fcd647b into rero:dev May 11, 2020
@blankoworld blankoworld deleted the doo-fix-flask-downgrade-problem branch May 12, 2020 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants