File: test_example_mypy_fail.py

package info (click to toggle)
pytest-check 2.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 480 kB
  • sloc: python: 2,220; sh: 17; makefile: 6
file content (27 lines) | stat: -rw-r--r-- 635 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import pytest
from pytest_check import check


@pytest.mark.xfail(reason="None cannot be compared")
def test_none_less() -> None:
    check.less(None, 1)


@pytest.mark.xfail(reason="None cannot be compared")
def test_none_less_equal() -> None:
    check.less_equal(None, 1)


@pytest.mark.xfail(reason="None cannot be compared")
def test_none_greater() -> None:
    check.greater(1, None)


@pytest.mark.xfail(reason="None cannot be compared")
def test_none_greater_equal() -> None:
    check.greater_equal(1, None)


@pytest.mark.xfail(reason="None cannot be compared")
def test_none_between() -> None:
    check.between(1, None, 2)