File: test_deprecation.py

package info (click to toggle)
astroquery 0.4.11%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,584 kB
  • sloc: python: 53,596; xml: 36,604; makefile: 140; ansic: 69
file content (12 lines) | stat: -rw-r--r-- 496 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
import pytest
from astropy.utils.exceptions import AstropyDeprecationWarning


@pytest.mark.skip(reason="Deprecation warning is disabled on Debian")
def test_raises_deprecation_warning():
    with pytest.raises(
        AstropyDeprecationWarning,
        match="The ``cds`` module has been moved to astroquery.mocserver, "
              "and ``CdsClass`` has been renamed to ``MOCServerClass``. "
              "Please update your imports."):
        from astroquery.cds import cds  # noqa: F401