[FIX]document_url_google_drive: fix in tests move name parameters

This commit is contained in:
Demchuk Mykola 2023-11-06 22:24:20 +02:00
parent c24bdd0159
commit 7b9f0a551a

View File

@ -2,9 +2,9 @@
# 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):
@classmethod
def setUpClass(cls):
@ -34,14 +34,16 @@ class TestDocumentUrl(common.TransactionCase):
def test_get_google_picker_params_is_active(self):
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(
{
"name": "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_app_id": "test_app_id",
"google_picker_access_token": "test_access_token",
"google_picker_mime_types": "test_mime_types",
}