add a test suite for App(), only two tests for now

This commit is contained in:
tshirtman 2012-10-07 01:26:40 +02:00
parent fe3592161b
commit 9ec885f53b
2 changed files with 19 additions and 0 deletions

18
kivy/tests/test_app.py Normal file
View File

@ -0,0 +1,18 @@
import unittest
from kivy.app import App
from kivy.clock import Clock
class AppTest(unittest.TestCase):
def test_start_raw_app(self):
a = App()
Clock.schedule_once(a.stop, .1)
a.run()
def test_start_app_with_kv(self):
class TestKvApp(App):
pass
a = TestKvApp()
Clock.schedule_once(a.stop, .1)
a.run()

1
kivy/tests/testkv.kv Normal file
View File

@ -0,0 +1 @@
#:kivy 1.4.1