[tracker-miners/sam/info-show-eligible: 1/2] functional-tests/extractor-generic.py: Remove 'No test' message
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/sam/info-show-eligible: 1/2] functional-tests/extractor-generic.py: Remove 'No test' message
- Date: Fri, 9 Oct 2020 16:11:13 +0000 (UTC)
commit 1df80d641411b207440197f9ac478cb99b4c29b0
Author: Sam Thursfield <sam afuera me uk>
Date: Fri Oct 9 17:35:37 2020 +0200
functional-tests/extractor-generic.py: Remove 'No test' message
This occured in the TestCase module, the "No test" is a placeholder
docstring which serves no purpose. By moving init later, we can pass
the name of the real test function, and there's no output.
tests/functional-tests/extractor-generic.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/tests/functional-tests/extractor-generic.py b/tests/functional-tests/extractor-generic.py
index aba28d043..9098ca91f 100755
--- a/tests/functional-tests/extractor-generic.py
+++ b/tests/functional-tests/extractor-generic.py
@@ -42,8 +42,6 @@ class GenericExtractionTestCase(fixtures.TrackerExtractTestCase):
"""
Descfile is the description file in a relative path
"""
- super(GenericExtractionTestCase, self).__init__(methodName)
-
self.descfile = descfile
try:
with open(descfile) as f:
@@ -61,9 +59,7 @@ class GenericExtractionTestCase(fixtures.TrackerExtractTestCase):
else:
setattr(self, methodName, self.generic_test_extraction)
- # unittest framework will run the test called "self._testMethodName"
- # So we set that variable to our new name
- self._testMethodName = methodName
+ super(GenericExtractionTestCase, self).__init__(methodName)
def __get_bugnumber(self):
return self.spec['test'].get('Bugzilla')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]