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

test: fix run-test and setup #1001

Merged
merged 1 commit into from
May 20, 2020
Merged

test: fix run-test and setup #1001

merged 1 commit into from
May 20, 2020

Conversation

rerowep
Copy link
Contributor

@rerowep rerowep commented May 19, 2020

  • Fixes problem with ui/documents/test_documents_api.py noz raising
    exceptions. closes Errors when running run_tests.sh #1000
  • Changes setup back to not run the ebooks harvesting for normal setup.
  • Corrects unused imports in scripts/init.py

Co-Authored-by: Peter Weber peter.weber@rero.ch

Why are you opening this PR?

How to test?

  • run run-test
  • run setup without connection to ebooks

Code review check list

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

@rerowep rerowep requested a review from BadrAly May 19, 2020 14:30
@rerowep rerowep self-assigned this May 19, 2020
scripts/__init__.py Show resolved Hide resolved
tests/ui/documents/test_documents_api.py Show resolved Hide resolved
@rerowep rerowep requested a review from BadrAly May 19, 2020 14:40
@rerowep rerowep force-pushed the wep-fix-run-tests branch from ee6e9dd to c310c5a Compare May 19, 2020 15:01
@rerowep rerowep requested review from jma, lauren-d and blankoworld May 19, 2020 15:04
@blankoworld
Copy link
Contributor

I got this error on bootstrap:

File "/home/od/rero/ils/rero_ils/schedulers.py", line 24, in <module>
    import jsonpickle
ModuleNotFoundError: No module named 'jsonpickle'

@rerowep rerowep force-pushed the wep-fix-run-tests branch 3 times, most recently from 2872d6b to fd9f5cb Compare May 19, 2020 15:32
scripts/setup Show resolved Hide resolved
scripts/setup Outdated
Comment on lines 373 to 376
info_msg "Start OAI harvesting 100"
eval ${PREFIX} invenio oaiharvester harvest -n ebooks -a max=100 -q
info_msg "For ebooks harvesting run:"
msg "\tinvenio oaiharvester harvest -n ebooks -a max=100 -q"
# info_msg "Start OAI harvesting 100"
# eval ${PREFIX} invenio oaiharvester harvest -n ebooks -a max=100 -q
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest:

  1. do not make ebook harvesting by default
  2. add a parameter that activate the ebook harvesting. In deployment or not.

@rerowep rerowep force-pushed the wep-fix-run-tests branch from fd9f5cb to e043902 Compare May 19, 2020 15:51
Copy link
Contributor

@lauren-d lauren-d left a comment

Choose a reason for hiding this comment

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

bootstrap, setup and run-test works.

* Fixes problem with ui/documents/test_documents_api.py not raising
  exceptions. closes rero#1000
* Changes setup back to not run the ebooks harvesting for normal setup.
* Corrects unused imports in scripts/__init__.py

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
@rerowep rerowep force-pushed the wep-fix-run-tests branch from e043902 to e8a364c Compare May 19, 2020 16:16
Copy link
Contributor

@blankoworld blankoworld left a comment

Choose a reason for hiding this comment

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

Works with changes done @18:16 today

@rerowep rerowep merged commit fe0a8c3 into rero:dev May 20, 2020
@rerowep rerowep deleted the wep-fix-run-tests branch May 20, 2020 08:37
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.

Errors when running run_tests.sh
5 participants