예제 #1
0
    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'
예제 #2
0
    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.')
예제 #3
0
 def setUp(self):
     self.problems = Problems()
     self.tool = Sasslint(self.problems, base_path=root_dir)
예제 #4
0
 def setUp(self):
     self.problems = Problems()
     self.tool = Sasslint(self.problems)