From e469f9c81f48e0af4bb20abbfb0797a5e19b0b48 Mon Sep 17 00:00:00 2001 From: Lukas Holecek Date: Jun 11 2018 08:23:49 +0000 Subject: Fix pylint warnings Fixes following warning. Method 'to_json' is abstract in class 'Answer' but is not overridden (abstract-method) --- diff --git a/greenwave/policies.py b/greenwave/policies.py index b067ca2..657165f 100644 --- a/greenwave/policies.py +++ b/greenwave/policies.py @@ -64,6 +64,9 @@ class RuleSatisfied(Answer): is_satisfied = True + def to_json(self): + raise NotImplementedError() + class RuleNotSatisfied(Answer): """ @@ -75,6 +78,9 @@ class RuleNotSatisfied(Answer): is_satisfied = False + def to_json(self): + raise NotImplementedError() + class TestResultMissing(RuleNotSatisfied): """