mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-27 19:08:42 -06:00
[FIX]document_url_google_drive: fix in tests move name parameters
This commit is contained in:
parent
c24bdd0159
commit
7b9f0a551a
@ -2,9 +2,9 @@
|
|||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
|
||||||
from odoo.tests import common
|
from odoo.tests import common, tagged
|
||||||
|
|
||||||
|
|
||||||
|
@tagged("tttttt")
|
||||||
class TestDocumentUrl(common.TransactionCase):
|
class TestDocumentUrl(common.TransactionCase):
|
||||||
@classmethod
|
@classmethod
|
||||||
def setUpClass(cls):
|
def setUpClass(cls):
|
||||||
@ -34,14 +34,16 @@ class TestDocumentUrl(common.TransactionCase):
|
|||||||
|
|
||||||
def test_get_google_picker_params_is_active(self):
|
def test_get_google_picker_params_is_active(self):
|
||||||
self.config_settings.set_param("is_active_google_api", True)
|
self.config_settings.set_param("is_active_google_api", True)
|
||||||
|
self.config_settings.set_param("google_picker_api_key", "test_api_key")
|
||||||
|
self.config_settings.set_param("google_picker_app_id", "test_app_id")
|
||||||
|
self.config_settings.set_param(
|
||||||
|
"google_picker_client_id", "test_client_id"
|
||||||
|
)
|
||||||
user = self.users.with_context(no_reset_password=True).create(
|
user = self.users.with_context(no_reset_password=True).create(
|
||||||
{
|
{
|
||||||
"name": "Test User",
|
"name": "Test User",
|
||||||
"login": "test_user",
|
"login": "test_user",
|
||||||
"google_picker_client_id": "test_client_id",
|
|
||||||
"google_picker_api_key": "test_api_key",
|
|
||||||
"google_picker_scope": "test_scope",
|
"google_picker_scope": "test_scope",
|
||||||
"google_picker_app_id": "test_app_id",
|
|
||||||
"google_picker_access_token": "test_access_token",
|
"google_picker_access_token": "test_access_token",
|
||||||
"google_picker_mime_types": "test_mime_types",
|
"google_picker_mime_types": "test_mime_types",
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user