Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/tests/misc/cexample_module.py

17 lines
244 B
Python
Raw Normal View History

tests/misc: Add test for cexample module. This also moves the existing test for cexample.add_ints originally done in extra_coverage. Signed-off-by: Laurens Valk <laurens@pybricks.com>
2022-11-21 15:13:24 +01:00
# test custom builtin module
try:
import cexample
except ImportError:
print("SKIP")
raise SystemExit
print(cexample)
tests/misc/cexample_module: Test class presence. Now that the Timer class has been merged in a separate pull request, this can be added to the module test too. Signed-off-by: Laurens Valk <laurens@pybricks.com>
2022-11-24 09:06:49 +01:00
print(cexample.__name__)
tests/misc: Add test for cexample module. This also moves the existing test for cexample.add_ints originally done in extra_coverage. Signed-off-by: Laurens Valk <laurens@pybricks.com>
2022-11-21 15:13:24 +01:00
d = dir(cexample)
d.index("add_ints")
tests/misc/cexample_module: Test class presence. Now that the Timer class has been merged in a separate pull request, this can be added to the module test too. Signed-off-by: Laurens Valk <laurens@pybricks.com>
2022-11-24 09:06:49 +01:00
d.index("Timer")
tests/misc: Add test for cexample module. This also moves the existing test for cexample.add_ints originally done in extra_coverage. Signed-off-by: Laurens Valk <laurens@pybricks.com>
2022-11-21 15:13:24 +01:00
print(cexample.add_ints(1, 3))
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 43ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API