mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Add more tests
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "ErrorTest",
|
||||
"publisher": "MicroPythonOS",
|
||||
"short_description": "Test app with intentional error",
|
||||
"long_description": "This app has an intentional import error for testing.",
|
||||
"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.errortest/icons/com.micropythonos.errortest_0.0.1_64x64.png",
|
||||
"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.errortest/mpks/com.micropythonos.errortest_0.0.1.mpk",
|
||||
"fullname": "com.micropythonos.errortest",
|
||||
"version": "0.0.1",
|
||||
"category": "development",
|
||||
"activities": [
|
||||
{
|
||||
"entrypoint": "assets/error.py",
|
||||
"classname": "Error",
|
||||
"intent_filters": [
|
||||
{
|
||||
"action": "main",
|
||||
"category": "launcher"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
from mpos.apps import ActivityDoesntExist # should fail here
|
||||
|
||||
class Error(Activity):
|
||||
|
||||
def onCreate(self):
|
||||
screen = lv.obj()
|
||||
label = lv.label(screen)
|
||||
label.set_text('Hello World!')
|
||||
label.center()
|
||||
self.setContentView(screen)
|
||||
Reference in New Issue
Block a user