comparison 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
comparison
equal deleted inserted replaced
7934:6a13cf7bdca5 7935:f670446b5e50
100 # add a message to allow retrieval 100 # add a message to allow retrieval
101 result = cls.db.msg.create(author = "1", 101 result = cls.db.msg.create(author = "1",
102 content = "a message foo bar RESULT", 102 content = "a message foo bar RESULT",
103 date=rdate.Date(), 103 date=rdate.Date(),
104 messageid="test-msg-id") 104 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
105 cls.db.commit() 116 cls.db.commit()
106 cls.db.close() 117 cls.db.close()
107 118
108 # Force locale config to find locales in checkout not in 119 # Force locale config to find locales in checkout not in
109 # installed directories 120 # installed directories

Roundup Issue Tracker: http://roundup-tracker.org/