-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3345 from cclauss/stop-breaking-Python3
Prevent PRs from breaking Python 3 tests
- Loading branch information
Showing
2 changed files
with
22 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,24 @@ | ||
#!/bin/sh | ||
|
||
pytest openlibrary/mocks openlibrary/olbase openlibrary/utils scripts/tests openlibrary/tests \ | ||
openlibrary/catalog/add_book/tests/test_add_book.py \ | ||
openlibrary/coverstore/tests/test_code.py \ | ||
openlibrary/coverstore/tests/test_webapp.py \ | ||
openlibrary/plugins/admin/tests/test_services.py \ | ||
openlibrary/plugins/books/tests/test_doctests.py \ | ||
openlibrary/plugins/books/tests/test_dynlinks.py \ | ||
openlibrary/plugins/importapi/tests/test_code_ils.py \ | ||
openlibrary/plugins/importapi/tests/test_import_edition_builder.py \ | ||
openlibrary/plugins/openlibrary/tests/test_borrow_home.py \ | ||
openlibrary/plugins/openlibrary/tests/test_lists.py \ | ||
openlibrary/plugins/openlibrary/tests/test_stats.py \ | ||
openlibrary/plugins/upstream/tests/test_account.py \ | ||
openlibrary/plugins/upstream/tests/test_addbook.py \ | ||
openlibrary/plugins/upstream/tests/test_forms.py \ | ||
openlibrary/plugins/upstream/tests/test_merge_authors.py \ | ||
openlibrary/plugins/upstream/tests/test_related_carousels.py \ | ||
openlibrary/plugins/upstream/tests/test_utils.py \ | ||
openlibrary/plugins/worksearch/tests/test_worksearch.py \ | ||
openlibrary/catalog/add_book/tests/test_load_book.py \ | ||
openlibrary/catalog/add_book/tests/test_match.py \ | ||
openlibrary/catalog/marc/tests/test_marc_binary.py \ | ||
openlibrary/catalog/marc/tests/test_marc_html.py \ | ||
openlibrary/catalog/merge/test_amazon.py \ | ||
openlibrary/catalog/merge/test_merge.py \ | ||
openlibrary/catalog/merge/test_merge_marc.py \ | ||
openlibrary/catalog/merge/test_names.py \ | ||
openlibrary/catalog/merge/test_normalize.py | ||
|
||
# The following sections allow us to quickly spot tests that are fixed | ||
|
||
# catalog: All failing tests run in allow failures (|| true) mode | ||
pytest \ | ||
openlibrary/catalog/marc/tests/test_get_subjects.py \ | ||
openlibrary/catalog/marc/tests/test_marc.py \ | ||
openlibrary/catalog/marc/tests/test_parse.py \ | ||
openlibrary/tests/catalog/test_get_ia.py \ | ||
|| true | ||
|
||
# coverstore: All failing tests run in allow failures (|| true) mode | ||
pytest \ | ||
openlibrary/coverstore/tests/test_coverstore.py \ | ||
openlibrary/coverstore/tests/test_doctests.py || true | ||
|
||
# plugins: All failing tests run in allow failures (|| true) mode | ||
pytest openlibrary/catalog openlibrary/coverstore openlibrary/mocks openlibrary/olbase \ | ||
openlibrary/plugins openlibrary/tests openlibrary/utils scripts/tests \ | ||
--ignore=openlibrary/catalog/marc/tests/test_get_subjects.py \ | ||
--ignore=openlibrary/catalog/marc/tests/test_marc.py \ | ||
--ignore=openlibrary/catalog/marc/tests/test_parse.py \ | ||
--ignore=openlibrary/tests/catalog/test_get_ia.py \ | ||
--ignore=openlibrary/coverstore/tests/test_coverstore.py \ | ||
--ignore=openlibrary/coverstore/tests/test_doctests.py \ | ||
--ignore=openlibrary/plugins/openlibrary/tests/test_home.py \ | ||
--ignore=openlibrary/plugins/upstream/tests/test_merge_authors.py | ||
RETURN_CODE=$? | ||
|
||
pytest openlibrary/catalog/marc/tests/test_get_subjects.py || true | ||
pytest openlibrary/catalog/marc/tests/test_marc.py || true | ||
pytest openlibrary/catalog/marc/tests/test_parse.py || true | ||
pytest openlibrary/tests/catalog/test_get_ia.py || true | ||
pytest openlibrary/coverstore/tests/test_coverstore.py || true | ||
pytest openlibrary/coverstore/tests/test_doctests.py || true | ||
pytest openlibrary/plugins/openlibrary/tests/test_home.py || true | ||
pytest openlibrary/plugins/upstream/tests/test_merge_authors.py || true | ||
|
||
exit ${RETURN_CODE} |