Commit 438b8fb1 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

test: 'script' is not a valid id for script in recent PythonScripts.

parent 6ded2571
Pipeline #23871 failed with stage
in 0 seconds
...@@ -285,8 +285,8 @@ class TestERP5Type(ERP5TypeTestCase, LogInterceptor): ...@@ -285,8 +285,8 @@ class TestERP5Type(ERP5TypeTestCase, LogInterceptor):
def test_objectValues(self): def test_objectValues(self):
person = self.portal.person_module.newContent(portal_type='Person') person = self.portal.person_module.newContent(portal_type='Person')
createZODBPythonScript(person, 'script', '', '') createZODBPythonScript(person, 'test_script', '', '')
script = person['script'] script = person['test_script']
self.assertIn(script, person.objectValues()) self.assertIn(script, person.objectValues())
self.assertNotIn(script, person.objectValues(portal_type='Person')) self.assertNotIn(script, person.objectValues(portal_type='Person'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment