11# Copyright 2026 Camptocamp SA
22# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
33
4- import os
54from unittest import mock
65
76from odoo import exceptions
@@ -15,14 +14,6 @@ def _setup_records(cls):
1514 res = super ()._setup_records ()
1615 cls .url = "https://localhost.demo.odoo/"
1716 # Certificate and private key configuration
18- os .environ ["SERVER_ENV_CONFIG" ] = "\n " .join (
19- [
20- "[webservice_backend.test_client_certificate_and_key]" ,
21- "auth_type = client_certificate" ,
22- "client_certificate_path = /path/client.cert" ,
23- "client_private_key_path = /path/client.key" ,
24- ]
25- )
2617 cls .backend_certificate_and_key = cls .env ["webservice.backend" ].create (
2718 {
2819 "name" : "Webservice Client Certificate & Key" ,
@@ -35,13 +26,6 @@ def _setup_records(cls):
3526 }
3627 )
3728 # Certificate only configuration (no private key)
38- os .environ ["SERVER_ENV_CONFIG" ] = "\n " .join (
39- [
40- "[webservice_backend.test_client_certificate_only]" ,
41- "auth_type = client_certificate" ,
42- "client_certificate_path = /path/client.pem" ,
43- ]
44- )
4529 cls .backend_certificate_only = cls .env ["webservice.backend" ].create (
4630 {
4731 "name" : "Webservice Client Certificate Only" ,
0 commit comments