def test_override_severity(self, test_data_dir): config = Config() config.threshold = RuleSeverity("W") config.configure = ["missing-doc-test-case:severity:i"] test_file = test_data_dir / "override_severity" / "test.robot" config.paths = [str(test_file)] robocop_instance = Robocop(config=config) robocop_instance.run() assert not robocop_instance.reports["json_report"].issues
def robocop_instance(): return Robocop()
def robocop_instance(): return Robocop(from_cli=True)
def robocop_instance_not_cli(): return Robocop(from_cli=False)