File: test_main.py

package info (click to toggle)
pyegps 0.2.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 180 kB
  • sloc: python: 554; makefile: 7; sh: 5
file content (11 lines) | stat: -rw-r--r-- 374 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
"""Test main functionality."""

from pyegps import DEVICE_IMPLEMENTATIONS


def test_implementations_have_unique_ids():
    """Test that all device implementations have their unique implementation id."""
    unique_ids = []
    for impl in DEVICE_IMPLEMENTATIONS:
        assert (impl_id := impl.get_implementation_id()) is not unique_ids
        unique_ids.append(impl_id)