diff --git a/kadi/commands/tests/test_commands.py b/kadi/commands/tests/test_commands.py index d5278b0a..b04b610c 100644 --- a/kadi/commands/tests/test_commands.py +++ b/kadi/commands/tests/test_commands.py @@ -1,4 +1,5 @@ import os +import warnings from pathlib import Path import astropy.units as u @@ -13,6 +14,12 @@ from cxotime import CxoTime from testr.test_helper import has_internet +warnings.filterwarnings( + "ignore", + category=FutureWarning, + message="kadi commands v1 is deprecated, use v2 instead", +) + from kadi import commands from kadi.commands import ( commands_v1, diff --git a/kadi/commands/tests/test_states.py b/kadi/commands/tests/test_states.py index 211040dc..df59e824 100644 --- a/kadi/commands/tests/test_states.py +++ b/kadi/commands/tests/test_states.py @@ -2,6 +2,7 @@ import gzip import hashlib import os +import warnings from pathlib import Path import numpy as np @@ -12,6 +13,12 @@ from Ska.engarchive import fetch from testr.test_helper import has_internet +warnings.filterwarnings( + "ignore", + category=FutureWarning, + message="kadi commands v1 is deprecated, use v2 instead", +) + from kadi import commands from kadi.commands import states diff --git a/pytest.ini b/pytest.ini index 574daa98..bdaa7034 100644 --- a/pytest.ini +++ b/pytest.ini @@ -3,4 +3,3 @@ filterwarnings = ignore:the imp module is deprecated in favour of importlib:DeprecationWarning ignore:'soft_unicode' has been renamed to 'soft_str' ignore:`np.object` is a deprecated alias for the builtin `object` - ignore:kadi commands v1 is deprecated, use v2 instead:FutureWarning