Skip to content

Commit

Permalink
should be bitwise_or
Browse files Browse the repository at this point in the history
Signed-off-by: a5r0n <a5r0n@users.noreply.github.com>
  • Loading branch information
a5r0n authored and webknjaz committed Feb 1, 2024
1 parent 707e2ef commit 5b74f84
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_multidict.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,9 @@ def test_or2(self, cls: Type[MutableMultiMapping[str]]) -> None:

assert {"key", "key2"} == {"key2"} | d.keys()

def test_or_not_implemented(self, cls: Type[MutableMultiMapping[str]]) -> None:
def test_bitwise_or_not_implemented(
self, cls: Type[MutableMultiMapping[str]]
) -> None:
d = cls([("key", "value1")])

sentinel_operation_result = object()
Expand All @@ -427,7 +429,9 @@ def __ror__(self, other):

assert d.keys() | RightOperand() is sentinel_operation_result

def test_or_iterable_not_set(self, cls: Type[MutableMultiMapping[str]]) -> None:
def test_bitwise_or_iterable_not_set(
self, cls: Type[MutableMultiMapping[str]]
) -> None:
d = cls([("key", "value1")])

assert {"key", "key2"} == d.keys() | ["key2"]
Expand Down

0 comments on commit 5b74f84

Please sign in to comment.