Skip to content

TestBadWords test_validate_prod unit test is failing (Forbidden: 403) #4886

@megaz

Description

@megaz

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: zahir.abdi5@gmail.com does not have...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions