uf-mil / ros_alarms

Alarm system implementation in ROS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python Tests

mattlangford opened this issue · comments

Migrate current python tests into rostests

I'm having issues getting ros unit tests to work for python. I can make service calls and such but subscribers seem not to be working. I try to run this but even it will never find the topic. Could you try it and let me know if you can get that test to work?

Seems like subscribers in the listener never get spooled up in the tests.
I tried putting a subscriber to the /chatter message in the alarm listener and having it assert False whenever it get's a message but that assertion is never made when running it with the example_support_python_node.py

This branch has my work to date on the python alarms. In this file, the assertion on line 136 seems to always fail.

I'll take a look tomorrow.

This was addressed by @ironmig in #15.