Skip to content
Browse files

Merge pull request #721 from kivy/tests_app

add a test suite for App(), only two tests for now
  • Loading branch information...
2 parents 1ddbd8b + 9ec885f commit 8b279daeb3adc1204c6315dddd19df99ed1011d6 @tito tito committed Oct 8, 2012
Showing with 19 additions and 0 deletions.
  1. +18 −0 kivy/tests/test_app.py
  2. +1 −0 kivy/tests/testkv.kv
View
18 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()
View
1 kivy/tests/testkv.kv
@@ -0,0 +1 @@
+#:kivy 1.4.1

0 comments on commit 8b279da

Please sign in to comment.
Something went wrong with that request. Please try again.