Browse Source

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>
pull/10072/head
Laurens Valk 2 years ago
parent
commit
5588647ad2
  1. 2
      tests/misc/cexample_module.py
  2. 1
      tests/misc/cexample_module.py.exp

2
tests/misc/cexample_module.py

@ -7,8 +7,10 @@ except ImportError:
raise SystemExit
print(cexample)
print(cexample.__name__)
d = dir(cexample)
d.index("add_ints")
d.index("Timer")
print(cexample.add_ints(1, 3))

1
tests/misc/cexample_module.py.exp

@ -1,2 +1,3 @@
<module 'cexample'>
cexample
4

Loading…
Cancel
Save