ignore not testable condition

This commit is contained in:
Matthias 2022-02-13 17:42:50 +01:00
parent 67a4f75856
commit 898f99c931
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -32,7 +32,7 @@ class UsersConfig(AppConfig):
# First, delete any rule_set objects which have become outdated!
for rule in RuleSet.objects.all():
if rule.name not in RuleSet.RULESET_NAMES:
if rule.name not in RuleSet.RULESET_NAMES: # pragma: no cover # can not change ORM without the app beeing loaded
print("need to delete:", rule.name)
rule.delete()