From 21fbfa3b3b28260473050dc01bf229190a334cf4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 14 Jul 2019 13:29:08 +0100 Subject: [PATCH] Add skills and roles to test data --- epicyon.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/epicyon.py b/epicyon.py index fc24bcaa..186f318b 100644 --- a/epicyon.py +++ b/epicyon.py @@ -14,6 +14,8 @@ from person import setPreferredNickname from person import setBio from person import validNickname from person import setProfileImage +from person import setSkillLevel +from person import setRole from webfinger import webfingerHandle from posts import getPosts from posts import createPublicPost @@ -541,6 +543,11 @@ if args.testdata: nickname='testuser567' print('Generating some test data for user: '+nickname) createPerson(baseDir,nickname,domain,port,httpPrefix,True,'likewhateveryouwantscoob') + setSkillLevel(baseDir,nickname,domain,'testing',60) + setSkillLevel(baseDir,nickname,domain,'typing',50) + setRole(baseDir,nickname,domain,'epicyon','tester') + setRole(baseDir,nickname,domain,'epicyon','hacker') + setRole(baseDir,nickname,domain,'someproject','assistant') deleteAllPosts(baseDir,nickname,domain,'inbox') deleteAllPosts(baseDir,nickname,domain,'outbox') followPerson(baseDir,nickname,domain,'admin',domain,federationList,True)