Skip to content

Commit

Permalink
add a simple tests for the do_* operator
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Feb 26, 2024
1 parent 3f17eb6 commit d046ff5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_operators.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import optype
import optype._do
from .helpers import get_callable_members


def test_all_public():
"""Ensure all callables in `optype._do` are in `optype.__all__`."""
callables_all = get_callable_members(optype)
callables_do = get_callable_members(optype._do)

assert callables_all == callables_do

0 comments on commit d046ff5

Please sign in to comment.