File: test_util.py

package info (click to toggle)
python-aiowithings 3.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,976 kB
  • sloc: python: 2,471; makefile: 5
file content (13 lines) | stat: -rw-r--r-- 363 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Asynchronous Python client for Withings."""

from aiowithings.util import get_measurement, get_measurement_from_dict


def test_measurement() -> None:
    """Test measurement."""
    assert get_measurement(20, -1) == 2


def test_measurement_from_dict() -> None:
    """Test measurement."""
    assert get_measurement_from_dict({"value": 20, "unit": -1}) == 2