mirror of https://github.com/kivy/kivy.git
add a test suite for App(), only two tests for now
This commit is contained in:
parent
fe3592161b
commit
9ec885f53b
|
@ -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()
|
|
@ -0,0 +1 @@
|
||||||
|
#:kivy 1.4.1
|
Loading…
Reference in New Issue