From 7b9f0a551afc87b829fdbb4ea025f40d0f72e478 Mon Sep 17 00:00:00 2001 From: Demchuk Mykola Date: Mon, 6 Nov 2023 22:24:20 +0200 Subject: [PATCH] [FIX]document_url_google_drive: fix in tests move name parameters --- document_url_google_drive/tests/test_document_url.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/document_url_google_drive/tests/test_document_url.py b/document_url_google_drive/tests/test_document_url.py index 5002f130..8a830d91 100644 --- a/document_url_google_drive/tests/test_document_url.py +++ b/document_url_google_drive/tests/test_document_url.py @@ -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", }