-
Improvement
-
Resolution: Fixed
-
Major
-
master
Binding Test: Pyagl
test 1:
now, “pytest /usr/lib/python3.8/site-packages/pyagl/tests/test_network.py” run okay
but, "python3 -m pyagl.services.network" reply nothing.
because network.py has not main function. other module python has the same question.
so add the main function to the module service for pyagl.
after add the code, it can receive the reply by "python3 -m pyagl.services.network"
- python3 -m pyagl.services.network 127.0.0.1 --services
Sent status request with messageid 157726238
Unknown macro: {'values'}, 'ipv6': {}, 'ipv6.configuration': {'method': 'auto', 'privacy': 'disabled'}, 'nameservers': ['192.168.11.1'], 'nameservers.configuration': [], 'timeservers': ['pool.ntp.org'], 'timeservers.configuration': [], 'domains': ['lan'], 'domains.configuration': [], 'proxy': {'method': 'direct'}, 'proxy.configuration': {}, 'mdns': False, 'mdns.configuration': False, 'provider': {}}}]}
- # python3 -m pyagl.services.network 127.0.0.1 --state
Sent status request with messageid 254114547
ready
test 2:
I found the bug after test the mediascanner service of pyagl, test log as below: raspberrypi4-64:/usr/lib/python3.8/site-packages/pyagl/services# python3 -m mediascanner 127.0.0.1 --unsubscribe media_added Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 193, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 86, in _run_code exec(code, run_globals) File "/usr/lib/python3.8/site-packages/pyagl/services/mediascanner.py", line 68, in <module> loop.run_until_complete(main(loop)) File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "/usr/lib/python3.8/site-packages/pyagl/services/mediascanner.py", line 60, in main for event in args.subscribe: TypeError: 'NoneType' object is not iterable
test 3:
Add main function to taskmanager service module, and add pytest python script to taskmanager service module.
test 4:
Add ten functionalitys to bluetooth service
test 5:
add functionality to can service