sot / kadi

Chandra commands and events
https://sot.github.io/kadi
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Suppress v1 FutureWarning for testing #255

Closed taldcroft closed 2 years ago

taldcroft commented 2 years ago

Description

For testing it is still allowed to import and use commands v1.

Interface impacts

None

Testing

Unit tests

Independent check of unit tests by [REVIEWER NAME]

Functional tests

Using this branch with v7.0 version of the cmds2.* files passes pytest unit tests and does not issue any warning messages at the end.

If I change the message=... to something that does not match then I confirm the warnings are flagged by pytest.

taldcroft commented 2 years ago

I wouldn't have removed the line from pytest.ini, but that is a detail.

Since command-line pytest is my usual way of testing, I would like to know right away if that warning might show up later in ska_testr which doesn't respect pytest.ini rules.