Code Review
/
yardstick.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Create API to run test cases
[yardstick.git]
/
tests
/
unit
/
api
/
actions
/
test_test.py
1
import unittest
2
import json
3
4
from api.actions import test
5
6
7
class RunTestCase(unittest.TestCase):
8
9
def test_runTestCase_with_no_testcase_arg(self):
10
args = {}
11
output = json.loads(test.runTestCase(args))
12
13
self.assertEqual('error', output['status'])
14
15
16
def main():
17
unittest.main()
18
19
20
if __name__ == '__main__':
21
main()