1 parent 0223b8a commit d13c0acCopy full SHA for d13c0ac
2 files changed
tests/test_opt.py
@@ -1,7 +1,7 @@
1
import pytest
2
3
from test_streams import Node
4
-from tinystream import Opt, EmptyOpt
+from tinystream import Opt
5
6
7
def test_opt_absent():
tests/test_streams.py
@@ -141,7 +141,6 @@ def test_string_one():
141
def test_string_one_ends():
142
stream = Stream("H")
143
assert stream.next().get() == "H"
144
- assert stream.next().empty is True
145
146
147
def test_list_flatmap_count():
@@ -361,7 +360,7 @@ def test_dict_map_key():
361
360
362
def test_dict_filter_key_invert():
363
stream = Stream.of_dict(create_dict())
364
- assert stream.filter_key(0, invert=True).next().empty is True
+ assert stream.filter_key(0, invert=True).next().absent
365
366
367
def test_dict_map_value():
0 commit comments