Skip to content

Commit

Permalink
query string parameter to search only published records
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Krist committed Jan 28, 2025
1 parent 01cad34 commit 2f2a542
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_communities/test_community_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,14 @@ def test_user_search(
ThesisRecord.index.refresh()
ThesisDraft.index.refresh()

response_record1 = owner_client.get(f"/communities/{community_1.id}/records")
response_record2 = owner_client.get(f"/communities/{community_2.id}/records")
response_record1 = owner_client.get(
f"/communities/{community_1.id}/records",
query_string={"record_status": "published"},
)
response_record2 = owner_client.get(
f"/communities/{community_2.id}/records",
query_string={"record_status": "published"},
)

response_draft1 = owner_client.get(f"/communities/{community_1.id}/user/records")
response_draft2 = owner_client.get(f"/communities/{community_2.id}/user/records")
Expand Down

0 comments on commit 2f2a542

Please sign in to comment.