Initial commit: Security packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:51 +02:00
commit bb469e4763
1399 changed files with 278378 additions and 0 deletions

View file

@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.tests.common import BaseCase
from odoo.addons.google_calendar.utils.google_calendar import GoogleEvent
class TestGoogleEvent(BaseCase):
def test_google_event_readonly(self):
event = GoogleEvent()
with self.assertRaises(TypeError):
event._events['foo'] = 'bar'
with self.assertRaises(AttributeError):
event._events.update({'foo': 'bar'})
with self.assertRaises(TypeError):
dict.update(event._events, {'foo': 'bar'})