Commit f2c8525 1 parent 6e534c6 commit f2c8525 Copy full SHA for f2c8525
File tree 1 file changed +6
-7
lines changed
ote_sdk/ote_sdk/tests/entities
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -43,22 +43,21 @@ def test_subset_members(self):
43
43
TESTING = 3
44
44
UNLABELED = 4
45
45
PSEUDOLABELED = 5
46
- UNASSIGNED = 6
47
46
48
47
<b>Steps</b>
49
48
1. Create enum instance
50
49
2. Check members
51
50
"""
52
51
test_instance = Subset
53
52
54
- for i in range (0 , 7 ):
53
+ for i in range (0 , 6 ):
55
54
assert test_instance (i ) in list (Subset )
56
55
57
56
with pytest .raises (AttributeError ):
58
57
test_instance .WRONG
59
58
60
59
with pytest .raises (ValueError ):
61
- test_instance (7 )
60
+ test_instance (6 )
62
61
63
62
@pytest .mark .priority_medium
64
63
@pytest .mark .unit
@@ -82,14 +81,14 @@ def test_subset_magic_str(self):
82
81
test_instance = Subset
83
82
magic_str_list = [str (i ) for i in list (Subset )]
84
83
85
- for i in range (0 , 7 ):
84
+ for i in range (0 , 6 ):
86
85
assert str (test_instance (i )) in magic_str_list
87
86
88
87
with pytest .raises (AttributeError ):
89
88
str (test_instance .WRONG )
90
89
91
90
with pytest .raises (ValueError ):
92
- str (test_instance (7 ))
91
+ str (test_instance (6 ))
93
92
94
93
assert len (set (magic_str_list )) == len (magic_str_list )
95
94
@@ -114,13 +113,13 @@ def test_subset_magic_repr(self):
114
113
test_instance = Subset
115
114
magic_repr_list = [repr (i ) for i in list (Subset )]
116
115
117
- for i in range (0 , 7 ):
116
+ for i in range (0 , 6 ):
118
117
assert repr (test_instance (i )) in magic_repr_list
119
118
120
119
with pytest .raises (AttributeError ):
121
120
repr (test_instance .WRONG )
122
121
123
122
with pytest .raises (ValueError ):
124
- repr (test_instance (7 ))
123
+ repr (test_instance (6 ))
125
124
126
125
assert len (set (magic_repr_list )) == len (magic_repr_list )
You can’t perform that action at this time.
0 commit comments