Skip to content

Commit

Permalink
adding a scatter plot test
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Jun 13, 2024
1 parent 62fc3fb commit 1773f6d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/web_components/scatter_plot_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""Tests for graph_plot web component"""

# SageWorks Imports
from sageworks.api import FeatureSet
from sageworks.web_components.plugins.scatter_plot import ScatterPlot


def test_scatter_plot():
"""Test the ScatterPlot class"""

# Instantiate a Graph
fs = FeatureSet("abalone_features")

# Instantiate the ScatterPlot class
plot = ScatterPlot()

# Generate the figure (it's the first element in the property list)
all_properties = plot.update_properties(fs)
figure = all_properties[0]
figure.show()


if __name__ == "__main__":
# Run the tests
test_scatter_plot()

0 comments on commit 1773f6d

Please sign in to comment.