Skip to content

Commit

Permalink
failed_extra_capabilities now checks if model claims the capability
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Jun 21, 2019
1 parent 5dafcee commit 06d84c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sciunit/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def failed_extra_capabilities(self):
for capability, f_name in self.extra_capability_checks.items():
f = getattr(self, f_name)
instance_capable = f()
if not instance_capable:
if isinstance(self, capability) and not instance_capable:
failed.append(capability)
return failed

Expand Down

0 comments on commit 06d84c5

Please sign in to comment.