bcliang / dash-extendable-graph

Graphing component for Dash. Forked from the core Graph component, with modified extend/prepend properties to accept data formats matching `figure["data"]`
MIT License
10 stars 0 forks source link

implement component tests #7

Closed bcliang closed 5 years ago

bcliang commented 5 years ago

boilerplate provides an example of test run using pytest. Let's implement tests for the following:

ExtendData input callback for a new ExtendableGraph object (no props) should revert to using this.plot()

ExtendData input callback (n-count traces) for an ExtendableGraph object with existing (n-count) traces should extend traces as expected.

ExtendData input callback (n-count traces) for an ExtendableGraph object with existing (m-count, m>n) traces should extend-then-append traces.

bcliang commented 5 years ago

3 tests added. Removed test_usage.py.