Skip to content

Commit 54ea9db

Browse files
committed
test: populate db with query using @current_user
For future testing.
1 parent 9417118 commit 54ea9db

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/test_liveserver.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,17 @@ def setup_class(cls):
102102
content = "a message foo bar RESULT",
103103
date=rdate.Date(),
104104
messageid="test-msg-id")
105+
106+
# add a query using @current_user
107+
result = cls.db.query.create(
108+
klass="issue",
109+
name="I created",
110+
private_for=None,
111+
url=("@columns=title,id,activity,status,assignedto&"
112+
"@sort=activity&@group=priority&@filter=creator&"
113+
"@pagesize=50&@startwith=0&creator=%40current_user")
114+
)
115+
105116
cls.db.commit()
106117
cls.db.close()
107118

0 commit comments

Comments
 (0)