-
- Downloads
config: Remove default config values for backends
These default config values are mostly irrelevant for any kind of deployment. Removing the default values make it clear and mandatory these need to be explicitly configured. This also prevent the swh.web.utils.archive module from executing (backend instantiation) code at module loading time. Introduces a new patch_backend fixture to help mocking a specific method of a known configured backend (storage, vault, search etc.) to try to provide a standard and unified process to mock these in all tests.
Showing
- cypress/e2e/layout.cy.js 2 additions, 1 deletioncypress/e2e/layout.cy.js
- swh/web/api/tests/views/test_origin.py 55 additions, 55 deletionsswh/web/api/tests/views/test_origin.py
- swh/web/api/views/metadata.py 4 additions, 3 deletionsswh/web/api/views/metadata.py
- swh/web/api/views/raw.py 9 additions, 7 deletionsswh/web/api/views/raw.py
- swh/web/config.py 42 additions, 100 deletionsswh/web/config.py
- swh/web/conftest.py 20 additions, 0 deletionsswh/web/conftest.py
- swh/web/settings/tests.py 4 additions, 0 deletionsswh/web/settings/tests.py
- swh/web/tests/data.py 0 additions, 6 deletionsswh/web/tests/data.py
- swh/web/utils/archive.py 90 additions, 77 deletionsswh/web/utils/archive.py
- swh/web/utils/tests/test_archive.py 15 additions, 9 deletionsswh/web/utils/tests/test_archive.py
- swh/web/vault/tests/test_apiviews.py 28 additions, 20 deletionsswh/web/vault/tests/test_apiviews.py
Loading
Please register or sign in to comment