Пример #1
0
 def testPep257Conformance(self):
     """Test that we conform to PEP257."""
     errors = pep257.check_files(self._pyfiles)
     if errors:
         print("There were errors:")
         for error in errors:
             print(error)
     self.assertEquals(len(errors), 0)
Пример #2
0
 def testPep257Conformance(self):
     """Test that we conform to PEP257."""
     errors = pep257.check_files(self._pyfiles)
     if errors:
         print("There were errors:")
         for error in errors:
             print(error)
     self.assertEquals(len(errors), 0)
    def test_pep257_conformance(self):
        errors = []

        for filePath in self.filesToAnalyze:
            print("Processing file: {0}".format(filePath))
            result = pep257.check_files([filePath])
            if result:
                errors.extend(result)
                for error in result:
                    print(error)
                print
        self.assertEqual(len(errors), 0, "Found Docstring Conventions violations.")
Пример #4
0
    def test_pep257_conformance(self):
        errors = []

        for filePath in self.filesToAnalyze:
            print("Processing file: {0}".format(filePath))
            result = pep257.check_files([filePath])
            if result:
                errors.extend(result)
                for error in result:
                    print(error)
                print
        self.assertEqual(len(errors), 0,
                         "Found Docstring Conventions violations.")
Пример #5
0
    def pep257_report(self):
        """
        Outputs flake8 report.
        """
        log.info("\n\nPEP257 Report:")
        base = get_path([BASEDIR, 'tribus'])
        pys = find_files(path=base, pattern='*.py')
        report = pep257.check_files(pys)

        if len(report) > 0:
            for r in report:
                log.info(r)
        else:
            log.info("\nNo errors found!")
Пример #6
0
def test_pep257_conformance():
    assert pep257.check_files(FILES) == []
Пример #7
0
def test_pep257_conformance():
    assert pep257.check_files(FILES) == []
Пример #8
0
def test_pep257():
    from pep257 import check_files
    assert [] == check_files(['pep257.py'])
Пример #9
0
def test_pep257_conformance():
    from pep257 import check_files
    assert check_files(FILES) == []