Skip to content

Commit

Permalink
move test to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshix-1 committed Jun 29, 2024
1 parent 6e06bb9 commit 45d132d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions tests/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
StreamEmptyError,
StreamFinishedError,
StreamIndexError,
_impl,
)
from typed_stream._impl._iteration_utils import (
IterWithCleanUp,
Expand Down Expand Up @@ -57,6 +58,11 @@
noop,
)

for export in Stream(_impl.__all__).map(partial(getattr, _impl)): # noqa: F405
# pylint: disable-next=protected-access
assert export._module() == "typed_stream", f"{export!r}" # nosec: B101
del export


def testmod(
mod: types.ModuleType,
Expand Down
5 changes: 0 additions & 5 deletions typed_stream/_impl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,3 @@
*stream.__all__,
*file_streams.__all__,
)

for export in Stream(__all__).map(globals().__getitem__): # noqa: F405
# pylint: disable-next=protected-access
assert export._module() == "typed_stream", f"{export!r}" # nosec: B101
del export

0 comments on commit 45d132d

Please sign in to comment.