tests: add agents data (#39430)

This commit is contained in:
Benjamin Dauvergne 2020-01-31 17:49:32 +01:00
parent a6af6fd665
commit 047d03200c
1 changed files with 5 additions and 0 deletions

View File

@ -107,6 +107,10 @@ formdef.fields = [
formdef.store()
user = get_publisher().user_class.select()[0]
agent = get_publisher().user_class()
agent.name = 'agent1'
agent.email = 'agent@example.net'
agent.store()
for i in range(50):
formdata = formdef.data_class()()
@ -136,6 +140,7 @@ for i in range(50):
formdata.jump_status('finished')
if i%7 == 0:
formdata.user_id = user.id
formdata.evolution[-1].who = agent.id
formdata.store()
""",
}