Mercurial > p > roundup > code
diff test/test_liveserver.py @ 7935:f670446b5e50
test: populate db with query using @current_user
For future testing.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 05 May 2024 20:57:11 -0400 |
| parents | 6a13cf7bdca5 |
| children | 22354d7fc94a |
line wrap: on
line diff
--- a/test/test_liveserver.py Sun May 05 20:56:08 2024 -0400 +++ b/test/test_liveserver.py Sun May 05 20:57:11 2024 -0400 @@ -102,6 +102,17 @@ content = "a message foo bar RESULT", date=rdate.Date(), messageid="test-msg-id") + + # add a query using @current_user + result = cls.db.query.create( + klass="issue", + name="I created", + private_for=None, + url=("@columns=title,id,activity,status,assignedto&" + "@sort=activity&@group=priority&@filter=creator&" + "@pagesize=50&@startwith=0&creator=%40current_user") + ) + cls.db.commit() cls.db.close()
