diff --git a/kivy/tests/test_app.py b/kivy/tests/test_app.py new file mode 100644 index 000000000..1a3139352 --- /dev/null +++ b/kivy/tests/test_app.py @@ -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() diff --git a/kivy/tests/testkv.kv b/kivy/tests/testkv.kv new file mode 100644 index 000000000..3a7733d9f --- /dev/null +++ b/kivy/tests/testkv.kv @@ -0,0 +1 @@ +#:kivy 1.4.1