def test_process_files_with_config_from_evil_jerk(self): config = {'ignore': '`cat /etc/passwd`'} tool = Sasslint(self.problems, config, root_dir) tool.process_files([self.fixtures[1]]) problems = self.problems.all(self.fixtures[1]) assert len(problems) > 0, 'Shell injection fale'
def test_process_files_with_config(self): config = {'config': 'tests/fixtures/sasslint/sass-lint.yml'} tool = Sasslint(self.problems, config) tool.process_files([self.fixtures[1]]) problems = self.problems.all(self.fixtures[1]) eq_(0, len(problems), 'Config file should lower error count.')
def setUp(self): self.problems = Problems() self.tool = Sasslint(self.problems, base_path=root_dir)
def setUp(self): self.problems = Problems() self.tool = Sasslint(self.problems)