diff options
author | Laurent Peuch <cortex@worlddomination.be> | 2020-08-26 20:56:36 +0200 |
---|---|---|
committer | Laurent Peuch <cortex@worlddomination.be> | 2020-08-26 20:56:36 +0200 |
commit | dacd0a6e8be63252f0d6e4a815c64c8d4f25cad4 (patch) | |
tree | 20014063895094d904d4c07eee090a2eaa48be87 /logilab/common/pytest.py | |
parent | a1a0e5b711e6838ee8a120d410cb512362faf131 (diff) | |
download | logilab-common-dacd0a6e8be63252f0d6e4a815c64c8d4f25cad4.tar.gz |
style(black): new black release changed a bunch of stuff
Diffstat (limited to 'logilab/common/pytest.py')
-rw-r--r-- | logilab/common/pytest.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/logilab/common/pytest.py b/logilab/common/pytest.py index 04ad2f4..177d58e 100644 --- a/logilab/common/pytest.py +++ b/logilab/common/pytest.py @@ -258,8 +258,7 @@ class GlobalTestReport(object): self.errmodules.append((filename[:-3], problems, ran)) def failed_to_test_module(self, filename): - """called when the test module could not be imported by unittest - """ + """called when the test module could not be imported by unittest""" self.errors += 1 self.modulescount += 1 self.ran += 1 @@ -580,8 +579,7 @@ class DjangoTester(PyTester): def make_parser(): - """creates the OptionParser instance - """ + """creates the OptionParser instance""" from optparse import OptionParser parser = OptionParser(usage=PYTEST_DOC) @@ -890,7 +888,7 @@ Examples: ) def removeSucceededTests(obj, succTests): - """ Recursive function that removes succTests from + """Recursive function that removes succTests from a TestSuite or TestCase """ if isinstance(obj, unittest.TestSuite): @@ -1331,8 +1329,7 @@ class NonStrictTestLoader(unittest.TestLoader): return any([(pat in testedname) for pat in self.skipped_patterns]) # type: ignore def getTestCaseNames(self, testCaseClass: type) -> List[str]: - """Return a sorted sequence of method names found within testCaseClass - """ + """Return a sorted sequence of method names found within testCaseClass""" is_skipped = self._this_is_skipped classname = testCaseClass.__name__ if classname[0] == "_" or is_skipped(classname): |