Write a non ui test session.
parent
3884507a74
commit
7958f30744
@ -0,0 +1,9 @@
|
|||||||
|
from sugar.session.DbusProcess import DbusProcess
|
||||||
|
from sugar import env
|
||||||
|
|
||||||
|
class TestSession:
|
||||||
|
def start(self):
|
||||||
|
env.setup_python_path()
|
||||||
|
|
||||||
|
process = DbusProcess()
|
||||||
|
process.start()
|
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
import os
|
||||||
|
from sugar.session.TestSession import TestSession
|
||||||
|
from sugar.presence import PresenceService
|
||||||
|
|
||||||
|
os.environ['SUGAR_NICK_NAME'] = 'kiu'
|
||||||
|
|
||||||
|
session = TestSession()
|
||||||
|
session.start()
|
||||||
|
|
||||||
|
PresenceService.start()
|
||||||
|
|
Loading…
Reference in New Issue