Skip to content
Prev Previous commit
Next Next commit
Add simple test for objects namespace
  • Loading branch information
mwaskom committed Oct 2, 2022
commit c7328710fd0ccb6a7c846fd975af5f87f44e21e7
14 changes: 14 additions & 0 deletions tests/test_objects.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import seaborn.objects
from seaborn._core.plot import Plot
from seaborn._core.moves import Move
from seaborn._core.scales import Scale
from seaborn._marks.base import Mark
from seaborn._stats.base import Stat


def test_objects_namespace():

for name in dir(seaborn.objects):
if not name.startswith("__"):
obj = getattr(seaborn.objects, name)
assert issubclass(obj, (Plot, Mark, Stat, Move, Scale))