Add more tests

This commit is contained in:
Thomas Farstrike
2025-11-18 15:09:12 +01:00
parent 5827d40091
commit b6869d592a
4 changed files with 268 additions and 1 deletions
@@ -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)