Commit cb0e79af authored by Denis Bilenko's avatar Denis Bilenko

greentest: add 'fullname' property to TestCase

--HG--
extra : transplant_source : %03%93r%AC%85A%EA%E1%E7%E3%10q%0D0%06%2A%DB%A4%3D%F2
parent 1c796328
......@@ -26,6 +26,7 @@ import time
import traceback
import re
import os
from os.path import basename, splitext
import gevent
VERBOSE = sys.argv.count('-v') > 1
......@@ -83,6 +84,16 @@ class TestCase(unittest.TestCase):
@property
def testcasename(self):
return self.__class__.__name__ + '.' + self.testname
@property
def modulename(self):
test_method = getattr(self, self.testname)
return test_method.__func__.func_code.co_filename
@property
def fullname(self):
return splitext(basename(self.modulename))[0] + '.' + self.testcasename
def hook_stderr(self):
if VERBOSE:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment