Skip to content

Commit

Permalink
feat(stream): make MockStream class public (#114)
Browse files Browse the repository at this point in the history
* feat(stream): make MockStream class public
* test: add to api

Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman committed Jan 31, 2024
1 parent f692ac8 commit 053e3e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/galax/dynamics/mockstream/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
"""galax: Galactic Dynamix in Jax."""

from . import _df, _mockstream_generator
from . import _core, _df, _mockstream_generator
from ._core import *
from ._df import *
from ._mockstream_generator import *

__all__: list[str] = []
__all__ += _df.__all__
__all__ += _core.__all__
__all__ += _mockstream_generator.__all__
6 changes: 4 additions & 2 deletions tests/smoke/dynamics/mockstream/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
from galax.dynamics import mockstream


def test_all():
def test_all() -> None:
"""Test the `galax.dynamics.mockstream` API."""
assert set(mockstream.__all__) == set(
mockstream._df.__all__ + mockstream._mockstream_generator.__all__
mockstream._df.__all__
+ mockstream._core.__all__
+ mockstream._mockstream_generator.__all__
)

0 comments on commit 053e3e0

Please sign in to comment.