Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(1)  |  Import(1)

src/q/u/quality_report-1.0/unittests/metric_source/sonar_tests.py   quality_report(Download)
import StringIO
from qualitylib.metric_source import Sonar
from qualitylib.metric_source.sonar import SonarDashboard, SonarViolations, \
class SonarRunnerUnderTest(SonarRunner):
    ''' Override SonarRunner to return a fake JSON string. '''
    def url_open(self, *args, **kwargs): # pylint: disable=unused-argument
        ''' Return a fake JSON string. '''
        return StringIO.StringIO('{}')