Website Test
test_website · odoo/odoo
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 9 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.23 MB
Module directory on disk
Code analysis
0 migration notes
7 models
20 views
37 HTTP endpoints
Description
This module contains tests related to website. Those are present in a separate module as we are testing module install/uninstall/upgrade and we don't want to reload the website module every time, including it's possible dependencies. Neither we want to add in website module some routes, views and models which only purpose is to run tests.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 20
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
model_item |
Model item | ir.ui.view | qweb | New |
s_drag_image_preview_test |
Drag Image Preview Test | ir.ui.view | qweb | New |
snippets |
snippets | ir.ui.view | qweb | Inherits website.snippets |
test_error_view |
Test Error View | qweb | New | |
test_form |
Test Form | ir.ui.view | qweb | New |
test_model_multi_website_view_kanban |
test.model.multi.website.kanban | test.model.multi.website | kanban | New |
test_model_multi_website_view_list |
Test Multi Model Pages List | test.model.multi.website | list | New |
test_model_multi_website_view_list_js_class_bug |
Test Multi Model Pages list js_class bug | test.model.multi.website | list | New |
test_model_page_layout |
Test Model | ir.ui.view | qweb | New |
test_model_view_kanban |
test.model.kanban | test.model | kanban | New |
test_model_view_list |
Test Model Pages List | test.model | list | New |
test_page_view |
Test Page View | qweb | New | |
test_redirect_view |
test_redirect_view | ir.ui.view | qweb | New |
test_redirect_view_qs |
test_redirect_view_qs | ir.ui.view | qweb | New |
test_view |
Test View | qweb | New | |
test_view_access_error |
test_view_access_error | ir.ui.view | qweb | New |
test_view_child_broken |
test_view_child_broken | ir.ui.view | qweb | Inherits test_website.test_view |
test_view_to_be_t_called |
Test View To Be t-called | qweb | New | |
update_module_base_view |
update_module_base_view | ir.ui.view | qweb | New |
view_test_model_form |
test.model.form | test.model | form | New |
HTTP endpoints 37
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/empty_controller_test |
WebsiteTest.empty_controller_test |
public | http | ALL | website |
/get |
WebsiteTest.get_method |
public | http | GET | website |
/get_post |
WebsiteTest.get_post_method |
public | http | GET, POST | website |
/get_post_nomultilang |
WebsiteTest.get_post_method_no_multilang |
public | http | GET, POST | website |
/post |
WebsiteTest.post_method |
public | http | POST | website |
/test_access_error_http |
WebsiteTest.test_access_error_http |
public | http | ALL | website |
/test_access_error_json |
WebsiteTest.test_access_error_json |
public | jsonrpc | ALL | website |
/multi_company_website |
WebsiteTest.test_company_context |
public | http | ALL | website |
/test_countries_308, /test_countries_308/<model("test.model"):rec> |
WebsiteTest.test_countries_308 |
public | http | ALL | website |
/test_access_denied_http |
WebsiteTest.test_denied_error_http |
public | http | ALL | website |
/test_access_denied_json |
WebsiteTest.test_denied_error_json |
public | jsonrpc | ALL | website |
/test_error_view |
WebsiteTest.test_error_view |
public | http | ALL | website |
/test_get_dbname |
WebsiteTest.test_get_dbname |
public | jsonrpc | ALL | website |
/ignore_args/a |
WebsiteTest.test_ignore_args_a |
public | http | ALL | website |
/ignore_args/converter/<string:a> |
WebsiteTest.test_ignore_args_converter |
public | http | ALL | website |
/ignore_args/converter/<string:a>/nokw |
WebsiteTest.test_ignore_args_converter_nokw |
public | http | ALL | website |
/ignore_args/converteronly/<string:a> |
WebsiteTest.test_ignore_args_converter_only |
public | http | ALL | website |
/ignore_args/kw |
WebsiteTest.test_ignore_args_kw |
public | http | ALL | website |
/ignore_args/none |
WebsiteTest.test_ignore_args_none |
public | http | ALL | website |
/test_internal_error_http |
WebsiteTest.test_internal_error_http |
public | http | ALL | website |
/test_internal_error_json |
WebsiteTest.test_internal_error_json |
public | jsonrpc | ALL | website |
/test_lang_url/<model("res.country"):country> |
WebsiteTest.test_lang_url |
public | http | ALL | website |
/test_missing_error_http |
WebsiteTest.test_missing_error_http |
public | http | ALL | website |
/test_missing_error_json |
WebsiteTest.test_missing_error_json |
public | jsonrpc | ALL | website |
/test_model/<model("test.model"):test_model> |
WebsiteTest.test_model |
public | http | ALL | website |
/test_website/country/<model("res.country"):country> |
WebsiteTest.test_model_converter_country |
public | http | ALL | website |
/test_website/200/<model("test.model"):rec> |
WebsiteTest.test_model_converter_seoname |
public | http | ALL | website |
/test_website/model_item/<int:record_id> |
WebsiteTest.test_model_item |
public | http | GET | website |
/test_website/model_item_sudo/<int:record_id> |
WebsiteTest.test_model_item_sudo |
public | http | GET | sudo website |
/test_website/test_redirect_view_qs |
WebsiteTest.test_redirect_view_qs |
public | http | ALL | website |
/test_website_sitemap, /test_website_sitemap/something/<model("test.model"):rec> |
WebsiteTest.test_sitemap |
public | http | ALL | website |
/test_user_error_http |
WebsiteTest.test_user_error_http |
public | http | ALL | website |
/test_user_error_json |
WebsiteTest.test_user_error_json |
public | jsonrpc | ALL | website |
/test_validation_error_http |
WebsiteTest.test_validation_error_http |
public | http | ALL | website |
/test_validation_error_json |
WebsiteTest.test_validation_error_json |
public | jsonrpc | ALL | website |
/test_view |
WebsiteTest.test_view |
public | http | ALL | website |
/test_view_access_error |
WebsiteTest.test_view_access_error |
public | http | ALL | website |
Models touched 7
New fields (4)
-
nameCharrequired=Truetranslate=True -
submodel_idsOne2many → test.submodelargs: 'test.submodel', 'test_model_id', 'Submodels' -
tag_idMany2one → test.tagargs: 'test.tag' -
website_descriptionHtmldefault='<div class="o_test_website_description"><p>A simple website description content.</p></div>'sanitize_attributes=Falsesanitize_form=Falsesanitize_overridable=Truestring='Description for the website'translate=html_translate
-
open_website_url(self)
New fields (1)
-
nameChar
No public methods.
New fields (2)
-
nameCharrequired=True -
website_idMany2one → websiteondelete='cascade'string='Website' args: 'website'
No public methods.
New fields (3)
-
nameCharrequired=True -
tag_idMany2one → test.tagargs: 'test.tag' -
test_model_idMany2one → test.modelargs: 'test.model'
No public methods.
New fields (1)
-
nameCharrequired=True
No public methods.
New fields (1)
-
some_translatable_fieldChardefault='something'string='A translatable field'translate=True
No public methods.
New fields (1)
-
name_translatedChartranslate=True
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…