I am getting this error when I try to run my TestSuite
:
Traceback (most recent call last):
File "filemerge_test.py", line 98, in <module>
main(sys.argv)
File "filemerge_test.py", line 92, in main
filemerge_test.test_runner()
File "filemerge_test.py", line 20, in test_runner
self.run()
TypeError: run() takes at least 2 arguments (1 given)
TestSuite code:
from testcases import TestFunctionality
class FileMergerTest(unittest.TestSuite):
def __init__(self, log, options):
super(FileMergerTest, self).__init__()
self.options = options
self.log = log
def test_runner(self):
self.addTest(TestFunctionality(self.log, self.options))
self.run()
def main():
...
...
filemerge_test = FileMergerTest(log, options)
filemerge_test.test_runner()
After reading the documentation, I believe my self.run()
method requires a result
object. I'm not sure how to get a result
object from my TestCase
Aucun commentaire:
Enregistrer un commentaire