File: test_enum.py

package info (click to toggle)
sensor-state-data 2.20.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 388 kB
  • sloc: python: 969; makefile: 21
file content (10 lines) | stat: -rw-r--r-- 170 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
import pytest

from sensor_state_data.enum import StrEnum


def test_non_str():
    with pytest.raises(TypeError):

        class DeviceClass(StrEnum):
            X = 1