Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_required_classattrs_in_subclasses():
for kind, subclass in JobBase.__subclasses__.items():
assert hasattr(subclass, '__kind__')
assert hasattr(subclass, '__required__')
assert hasattr(subclass, '__optional__')