File: test_packaging.py

package info (click to toggle)
metpy 1.7.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,584 kB
  • sloc: python: 41,853; makefile: 111; javascript: 57
file content (17 lines) | stat: -rw-r--r-- 621 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Copyright (c) 2018 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""Test packaging details."""

from metpy.calc import tke
from metpy.interpolate import interpolate_to_grid
from metpy.io import Level2File
from metpy.plots import StationPlot


def test_modules_set():
    """Test that functions from each subpackage have correct module set."""
    assert Level2File.__module__ == 'metpy.io'
    assert StationPlot.__module__ == 'metpy.plots'
    assert interpolate_to_grid.__module__ == 'metpy.interpolate'
    assert tke.__module__ == 'metpy.calc'