Skip to content

Commit

Permalink
Merge pull request #255 from sot/v1-testing
Browse files Browse the repository at this point in the history
Suppress v1 FutureWarning for testing
  • Loading branch information
taldcroft authored Oct 4, 2022
2 parents ae31991 + 32d3570 commit eea6bb1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions kadi/commands/tests/test_commands.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import warnings
from pathlib import Path

import astropy.units as u
Expand All @@ -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,
Expand Down
7 changes: 7 additions & 0 deletions kadi/commands/tests/test_states.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import gzip
import hashlib
import os
import warnings
from pathlib import Path

import numpy as np
Expand All @@ -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

Expand Down
1 change: 0 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit eea6bb1

Please sign in to comment.