MCPcopy
hub / github.com/python-attrs/attrs / test_order_without_eq

Method test_order_without_eq

tests/test_make.py:2556–2563  ·  view source on GitHub ↗

eq=False, order=True raises a meaningful ValueError.

(self)

Source from the content-addressed store, hash-verified

2554 assert (eq, eq) == _determine_attrs_eq_order(None, eq, None, True)
2555
2556 def test_order_without_eq(self):
2557 """
2558 eq=False, order=True raises a meaningful ValueError.
2559 """
2560 with pytest.raises(
2561 ValueError, match="`order` can only be True if `eq` is True too"
2562 ):
2563 _determine_attrs_eq_order(None, False, True, True)
2564
2565 @given(cmp=booleans(), eq=optional_bool, order=optional_bool)
2566 def test_mix(self, cmp, eq, order):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected