Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress v1 FutureWarning for testing #255

Merged
merged 2 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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