internetarchive / iari

Import workflows for the Wikipedia Citations Database
GNU General Public License v3.0
11 stars 9 forks source link

As a developer i want all tests to succeed in "the wild" and not just select dev environments #870

Open mojomonger opened 1 year ago

mojomonger commented 1 year ago

This is what mojomonger got when trying to test on local envornment

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ==================================================== short test summary info ===================================================== FAILED tests/file_io/test_article_file_io.py::TestArticleFileIo::test_read_from_disk - FileNotFoundError: [Errno 2] No such file or directory: '/home/dpriskorn/src/python/wcdimportbot/json/articles/en.wikipedia.o... FAILED tests/file_io/test_article_file_io.py::TestArticleFileIo::test_save_to_disk - FileNotFoundError: [Errno 2] No such file or directory: '/home/dpriskorn/src/python/wcdimportbot/json/articles/en.wikipedia.o... ========================================== 2 failed, 167 passed, 406 warnings in 56.75s ========================================== (venv) /Users/chris/_jobs/archive.org/iari

mojomonger commented 1 year ago

Tests should not fail if run on alternate environment from developer who made the test.