Skip to content

Commit c0d3015

Browse files
committed
Fixes service only unittest loading
See adb logcat trace after the fix: ``` Android kivy bootstrap done. __name__ is __main__ AND: Ran string Run user program, change dir and execute entrypoint Imported unittest App requirements are: {'sqlite3', 'python3', 'openssl', 'requests', 'pyjnius', 'libffi'} Defined test case Adding Testcase: tests.test_requirements.Sqlite3TestCase Adding Testcase: tests.test_requirements.OpensslTestCase Adding Testcase: tests.test_requirements.RequestsTestCase Adding Testcase: tests.test_requirements.PyjniusTestCase Adding Testcase: tests.test_requirements.LibffiTestCase Tests to perform are: {'sqlite3': 'tests.test_requirements.Sqlite3TestCase', 'openssl': 'tests.test_requirements.OpensslTestCase', 'requests': 'tests.test_requirements.RequestsTestCase', 'pyjnius': 'tests.test_requirements.PyjniusTestCase', 'libffi': 'tests.test_requirements.LibffiTestCase'} .......... ---------------------------------------------------------------------- Ran 10 tests in 4.130s OK Python for android ended. ```
1 parent f96356b commit c0d3015

File tree

1 file changed

+1
-1
lines changed
  • testapps/on_device_unit_tests/test_app

1 file changed

+1
-1
lines changed

testapps/on_device_unit_tests/test_app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@
9292
else:
9393
# we don't have kivy or flask in our
9494
# requirements, so we run unittests in terminal
95-
suite = unittest.TestLoader().loadTestsFromNames(list(tests_to_perform))
95+
suite = unittest.TestLoader().loadTestsFromNames(list(tests_to_perform.values()))
9696
unittest.TextTestRunner().run(suite)

0 commit comments

Comments
 (0)