summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorqmo-odoo <qmo@odoo.com>2020-03-13 09:53:43 +0000
committerThibault Delavallée <tde@odoo.com>2020-03-17 07:56:10 +0000
commitff6f006059bb8f1e1d200456c1fceaa12b8b602d (patch)
tree4a5289cf4827847af43998e2e693d86dc29b797a /addons
parentd0bb42916f3d6e4cd15b7a7f9390421e863de7b3 (diff)
[IMP] event: avoid relying on data in tests
This commit removed the reference to a particular event.stage and creates it instead. LINKS TaskID: 2170834 PR: #45372
Diffstat (limited to 'addons')
-rw-r--r--addons/event/tests/test_event_security.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/event/tests/test_event_security.py b/addons/event/tests/test_event_security.py
index 50cf81a84ec..2ee16f2781b 100644
--- a/addons/event/tests/test_event_security.py
+++ b/addons/event/tests/test_event_security.py
@@ -84,8 +84,8 @@ class TestEventSecurity(TestEventCommon):
registration = self.env['event.registration'].create({'event_id': event.id, 'name': 'Myself'})
registration.write({'name': 'Myself2'})
- stage = self.env.ref('event.event_stage_done')
- stage.write({'name': 'ManagerEnded'})
+ stage = self.env['event.stage'].create({'name': 'test'})
+ stage.write({'name': 'ManagerTest'})
event.write({'stage_id': stage.id})
registration.unlink()