Closed bcliang closed 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()
layout
figure
len(extendData)
ExtendData input callback (n-count traces) for an ExtendableGraph object with existing (n-count) traces should extend traces as expected.
len(figure.data[0...n].[x, y])
ExtendData input callback (n-count traces) for an ExtendableGraph object with existing (m-count, m>n) traces should extend-then-append traces.
len(figure.data[n+1...m].[x, y])
3 tests added. Removed test_usage.py.
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()
layout
is defaultfigure
is defaultlen(extendData)
ExtendData input callback (n-count traces) for an ExtendableGraph object with existing (n-count) traces should extend traces as expected.
len(figure.data[0...n].[x, y])
ExtendData input callback (n-count traces) for an ExtendableGraph object with existing (m-count, m>n) traces should extend-then-append traces.
len(figure.data[n+1...m].[x, y])