File: test_exception.py

package info (click to toggle)
meteofrance-api 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 608 kB
  • sloc: python: 1,497; makefile: 8
file content (12 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
"""Tests for meteofrance module. Exception classes."""

import pytest

from meteofrance_api.exceptions import MeteoFranceError


def test_meteofrance_exception() -> None:
    """Tests MeteoFranceError exception."""
    with pytest.raises(MeteoFranceError):
        # TODO test for coverage. To be update in the future.
        raise MeteoFranceError("Test Error")