Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92b3880

Browse files
committed
Added tests for error bars.
1 parent 6bc0caf commit 92b3880

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"""
2+
test_error_bars:
3+
================
4+
5+
A module intended for use with Nose.
6+
7+
"""
8+
from nose.tools import raises
9+
from ...graph_objs.graph_objs import *
10+
from ...exceptions import (PlotlyDictKeyError, PlotlyDictValueError,
11+
PlotlyDataTypeError, PlotlyListEntryError)
12+
13+
def test_instantiate_error_x():
14+
ErrorX()
15+
ErrorX(value=0.1, type='percent', color='red')
16+
17+
18+
def test_instantiate_error_y():
19+
ErrorY()
20+
ErrorY(value=0.1, type='percent', color='red')
21+
22+
23+
@raises(PlotlyDictKeyError)
24+
def test_key_error():
25+
ErrorX(value=0.1, typ='percent', color='red')

0 commit comments

Comments
 (0)