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

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/q/u/quality_report-1.0/qualitylib/metric_source/sonar.py   quality_report(Download)
        sonar_options_string = ' '.join(['-Dsonar.%s=%s' % item \
                                         for item in sonar_options.items()])
        utils.rmtree(folder)  # Remove any left over checkouts
        product.check_out(folder)
        maven_command = ('export MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=512m"; '
        logging.info(maven_command)
        os.system(maven_command)
        utils.rmtree(folder)  # Remove folder to save space
 
 

src/q/u/quality_report-1.0/unittests/utils_tests.py   quality_report(Download)
    def test_non_existing_folder():
        ''' Test that a non existing folder is silently ignored. '''
        utils.rmtree('non-existing folder')
 
    def test_existing_folder(self):
            self.removed_folder = folder
 
        utils.rmtree('existing folder', remove_tree, lambda folder: True)
        self.assertEqual('existing folder', self.removed_folder)
 
        handler = logging.StreamHandler(log_string)
        logging.getLogger().addHandler(handler)
        utils.rmtree('folder', remove_tree, lambda folder: True)
        logging.getLogger().removeHandler(handler)
        self.assertEqual("Couldn't remove folder: OSError\n",