website icon indicating copy to clipboard operation
website copied to clipboard

TestBadWords test_validate_prod unit test is failing (Forbidden: 403)

Open megaz opened this issue 10 months ago • 0 comments
trafficstars

I followed the developer guide to get setup to contribute to the website repo and following the following step: https://github.com/datacommonsorg/website/blob/master/docs/developer_guide.md#run-all-tests

The unit test TestBadWords has a test test_validate_prod failing. This should be more of an integration test if there is a network call dependency. Generally, unit tests should not be doing network calls and if so, they should ideally be mocked in an integration test or similar.

============================================================================================== short test summary info ===============================================================================================
FAILED server/tests/lib/nl/bad_words_test.py::TestBadWords::test_validate_prod - google.api_core.exceptions.Forbidden: 403 GET https://storage.googleapis.com/storage/v1/b/datcom-website-config/o?projection=noAcl&prefix=nl_bad_words.txt&prettyPrint=false: [email protected] does not have...

megaz avatar Jan 24 '25 13:01 megaz