Write a non ui test session.

This commit is contained in:
Marco Pesenti Gritti 2006-09-10 03:07:10 +02:00
parent 3884507a74
commit 7958f30744
3 changed files with 22 additions and 0 deletions

View File

@ -5,4 +5,5 @@ sugar_PYTHON = \
Emulator.py \ Emulator.py \
MatchboxProcess.py \ MatchboxProcess.py \
Process.py \ Process.py \
TestSession.py \
UITestSession.py UITestSession.py

View File

@ -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()

12
tests/simulator/kiu.py Executable file
View File

@ -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()