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

Method test_default

tests/test_make.py:2543–2547  ·  view source on GitHub ↗

If all are set to None, set both eq and order to the passed default.

(self)

Source from the content-addressed store, hash-verified

2541
2542class TestDetermineAttrsEqOrder:
2543 def test_default(self):
2544 """
2545 If all are set to None, set both eq and order to the passed default.
2546 """
2547 assert (42, 42) == _determine_attrs_eq_order(None, None, None, 42)
2548
2549 @pytest.mark.parametrize("eq", [True, False])
2550 def test_order_mirrors_eq_by_default(self, eq):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected