Skip to content

Commit

Permalink
Tests: add names to behaviors.
Browse files Browse the repository at this point in the history
The 'name' property may become required.
See plone/plone.dexterity#169
  • Loading branch information
mauritsvanrees committed Jul 5, 2022
1 parent ab4f921 commit 1158f8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/169.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Tests: add names to behaviors. [maurits]
2 changes: 2 additions & 0 deletions src/plone/restapi/testing.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
/>
<include package="plone.rfc822" />
<plone:behavior
name="tests.restapi.test_behavior"
title="Test Behavior"
description="Schema-only behavior using attributes"
provides=".tests.dxtypes.ITestBehavior"
for="plone.dexterity.interfaces.IDexterityContent"
/>

<plone:behavior
name="tests.restapi.test_annotations_behavior"
title="Test Annotations Behavior"
description="Schema-only behavior using annotations"
factory="plone.behavior.AnnotationStorage"
Expand Down

0 comments on commit 1158f8b

Please sign in to comment.