VOLTTRON / volttron

VOLTTRON Distributed Control System Platform
https://volttron.readthedocs.io/
Other
457 stars 216 forks source link

Add skip test logic when pika not installed #3057

Open bonicim opened 1 year ago

bonicim commented 1 year ago

Description

Some tests require RMQ to be installed which in turn requires pika. When running these tests, pytest will mark those tests as 'ERROR'. If a volttron platform does not install RMQ, then running tests should not result in 'ERROR'; instead, those tests should be skipped following the example in this previous PR.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

pytest -m vc
pytest -m vcp
pytest -m zmq
pytest -m driver

Test Configuration: Ubuntu 18.04 Python 3.10

Checklist:

bonicim commented 1 year ago

@schandrika Do these test modifications make sense to you? The intent is for these tests to skip rather than thrown an error if pika is not installed (i.e. RMQ configured on Volttron).