Skip to content

Commit

Permalink
Set query on collection to avoid warnings during performance testing (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed Apr 18, 2023
1 parent d851e86 commit 814b701
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/plone/restapi/tests/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,14 @@ def step_setup_content(context):
publish(folder10np[f"doc{i}"])

# Collection
portal.invokeFactory("Collection", id="collection", title="Collection")
query = [
{
"i": "portal_type",
"o": "plone.app.querystring.operation.string.is",
"v": ["Document"],
}
]
portal.invokeFactory("Collection", id="collection", title="Collection", query=query)
set_description(portal.collection)
set_text(portal.collection)
publish(portal.collection)
Expand Down

0 comments on commit 814b701

Please sign in to comment.