Repository: bokeh/bokeh

Issue:
TextureRepetition missing from docs and `all`




Discussion:

Resolving patch:
diff --git a/bokeh/core/enums.py b/bokeh/core/enums.py
--- a/bokeh/core/enums.py
+++ b/bokeh/core/enums.py
@@ -85,6 +85,7 @@ class MyModel(Model):
 #-----------------------------------------------------------------------------
 
 __all__ = (
+    'Align',
     'Anchor',
     'AngleUnits',
     'ButtonType',
@@ -122,6 +123,7 @@ class MyModel(Model):
     'ResetPolicy',
     'RoundingFunction',
     'SizingMode',
+    'SizingPolicy',
     'SliderCallbackPolicy',
     'SortDirection',
     'SpatialUnits',
@@ -129,9 +131,11 @@ class MyModel(Model):
     'StepMode',
     'TextAlign',
     'TextBaseline',
+    'TextureRepetition',
     'TickLabelOrientation',
     'TooltipAttachment',
     'TooltipFieldFormatter',
+    'TrackPolicy',
     'VerticalAlign',
     'VerticalLocation',
 )
@@ -408,7 +412,7 @@ def enumeration(*values, **kwargs):
 #: Specify the baseline location for rendering text
 TextBaseline = enumeration("top", "middle", "bottom", "alphabetic", "hanging", "ideographic")
 
-# Specify how textures used as canvas patterns should repeat
+#: Specify how textures used as canvas patterns should repeat
 TextureRepetition = enumeration("repeat", "repeat_x", "repeat_y", "no_repeat")
 
 #: Specify how axis tick labels are oriented with respect to the axis


Test patch:
diff --git a/bokeh/core/tests/test_enums.py b/bokeh/core/tests/test_enums.py
--- a/bokeh/core/tests/test_enums.py
+++ b/bokeh/core/tests/test_enums.py
@@ -24,6 +24,7 @@
 # Bokeh imports
 from bokeh.colors import named
 from bokeh.palettes import __palettes__
+from bokeh._testing.util.api import verify_all
 
 # Module under test
 import bokeh.core.enums as bce
@@ -32,6 +33,62 @@
 # Setup
 #-----------------------------------------------------------------------------
 
+ALL  = (
+    'Align',
+    'Anchor',
+    'AngleUnits',
+    'ButtonType',
+    'DashPattern',
+    'DateFormat',
+    'DatetimeUnits',
+    'Dimension',
+    'Dimensions',
+    'Direction',
+    'Enumeration',
+    'enumeration',
+    'FontStyle',
+    'HatchPattern',
+    'HatchPatternAbbreviation',
+    'HoldPolicy',
+    'HorizontalLocation',
+    'JitterRandomDistribution',
+    'LatLon',
+    'LegendClickPolicy',
+    'LegendLocation',
+    'LineCap',
+    'LineDash',
+    'LineJoin',
+    'Location',
+    'MapType',
+    'MarkerType',
+    'NamedColor',
+    'NumeralLanguage',
+    'Orientation',
+    'OutputBackend',
+    'PaddingUnits',
+    'Palette',
+    'RenderLevel',
+    'RenderMode',
+    'ResetPolicy',
+    'RoundingFunction',
+    'SizingMode',
+    'SizingPolicy',
+    'SliderCallbackPolicy',
+    'SortDirection',
+    'SpatialUnits',
+    'StartEnd',
+    'StepMode',
+    'TextAlign',
+    'TextBaseline',
+    'TextureRepetition',
+    'TickLabelOrientation',
+    'TooltipAttachment',
+    'TooltipFieldFormatter',
+    'TrackPolicy',
+    'VerticalAlign',
+    'VerticalLocation',
+)
+
 #-----------------------------------------------------------------------------
 # General API
 #-----------------------------------------------------------------------------
@@ -250,60 +307,8 @@ def test_VerticalLocation(self):
 
 # any changes to contents of bce.py easily trackable here
 def test_enums_contents():
-    assert [x for x in dir(bce) if x[0].isupper()] == [
-        'Align',
-        'Anchor',
-        'AngleUnits',
-        'ButtonType',
-        'DashPattern',
-        'DateFormat',
-        'DatetimeUnits',
-        'Dimension',
-        'Dimensions',
-        'Direction',
-        'Enumeration',
-        'FontStyle',
-        'HatchPattern',
-        'HatchPatternAbbreviation',
-        'HoldPolicy',
-        'HorizontalLocation',
-        'JitterRandomDistribution',
-        'LatLon',
-        'LegendClickPolicy',
-        'LegendLocation',
-        'LineCap',
-        'LineDash',
-        'LineJoin',
-        'Location',
-        'MapType',
-        'MarkerType',
-        'NamedColor',
-        'NumeralLanguage',
-        'Orientation',
-        'OutputBackend',
-        'PaddingUnits',
-        'Palette',
-        'RenderLevel',
-        'RenderMode',
-        'ResetPolicy',
-        'RoundingFunction',
-        'SizingMode',
-        'SizingPolicy',
-        'SliderCallbackPolicy',
-        'SortDirection',
-        'SpatialUnits',
-        'StartEnd',
-        'StepMode',
-        'TextAlign',
-        'TextBaseline',
-        'TextureRepetition',
-        'TickLabelOrientation',
-        'TooltipAttachment',
-        'TooltipFieldFormatter',
-        'TrackPolicy',
-        'VerticalAlign',
-        'VerticalLocation',
-    ]
+    enums = [x for x in ALL if x != "enumeration"]
+    assert [x for x in dir(bce) if x[0].isupper()] == enums
 
 #-----------------------------------------------------------------------------
 # Private API
@@ -312,3 +317,5 @@ def test_enums_contents():
 #-----------------------------------------------------------------------------
 # Code
 #-----------------------------------------------------------------------------
+
+Test___all__ = verify_all(bce, ALL)