Skip to content

Commit 0ee8253

Browse files
committed
New test unit for coderbot
1 parent 8f4b064 commit 0ee8253

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,5 +244,6 @@ def reset():
244244

245245
## Test
246246
def testCoderbot(data):
247-
tests_state = runCoderbotTestUnit(data["varargrin"])
247+
# taking first JSON key value (varargin)
248+
tests_state = runCoderbotTestUnit(data[list(data.keys())[0]])
248249
return tests_state

coderbotTestUnit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def run_test(varargin):
134134
tests_state[test] = __testSonar()
135135
elif (test == 'speaker'):
136136
tests_state[test] = __test_speaker()
137-
elif(test == 'OCR'):
137+
elif(test == 'ocr'):
138138
tests_state[test] = __test_OCR()
139139
#add more test cases here
140140

v2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ paths:
191191
description: Components names to be tested
192192
schema:
193193
type: object
194-
default: {'varargin': ['motors', 'sonar', 'speaker']}
194+
default: {'varargin': ['motors', 'sonar', 'speaker', 'ocr']}
195195
required:
196196
- varargin
197197
properties:

0 commit comments

Comments
 (0)