File: test_utils.py

package info (click to toggle)
pytest-recording 0.13.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 272 kB
  • sloc: python: 961; makefile: 10
file content (8 lines) | stat: -rw-r--r-- 228 bytes parent folder | download
1
2
3
4
5
6
7
8
import pytest

from pytest_recording.utils import unique


@pytest.mark.parametrize("sequence, expected", (([], []), ([1, 1, 3, 5], [1, 3, 5])))
def test_unique(sequence, expected):
    assert list(unique(sequence)) == expected