Skip to content

Commit

Permalink
Fix doc generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed Apr 4, 2023
1 parent d8b6c9d commit 326e37b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plone/restapi/tests/test_documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1687,12 +1687,13 @@ def test_querystringsearch_post(self):
save_request_and_response_for_docs("querystringsearch_post", response)

def test_querystringsearch_get(self):
url = "/@querystring-search?query=%7B%22query%22%3A%5B%7B%22i%22%3A%22portal_type%22%2C%22o%22%3A%20%22plone.app.querystring.operation.selection.any%22%2C%22v%22%3A%5B%22Document%22%5D%7D%5D%7D"
query = {"query": "%7B%22query%22%3A%5B%7B%22i%22%3A%22portal_type%22%2C%22o%22%3A%20%22plone.app.querystring.operation.selection.any%22%2C%22v%22%3A%5B%22Document%22%5D%7D%5D%7D"}
url = "/@querystring-search"

self.portal.invokeFactory("Document", "testdocument", title="Test Document")
transaction.commit()

response = self.api_session.get(url)
response = self.api_session.get(url, params=query)
save_request_and_response_for_docs("querystringsearch_get", response)

def test_system_get(self):
Expand Down

0 comments on commit 326e37b

Please sign in to comment.