Page MenuHomeSoftware Heritage

Jenkins > .tox.py3-full.lib.python3.7.site-packages.swh.model.tests.test_model::test_object_type_is_final
Failed

TEST RESULT

Run At
Oct 1 2021, 2:22 PM
Details
def test_object_type_is_final(): object_types = set() def check_final(cls): if hasattr(cls, "object_type"): assert cls.object_type not in object_types object_types.add(cls.object_type) if cls.__subclasses__(): assert not hasattr(cls, "object_type") for subcls in cls.__subclasses__(): check_final(subcls) > check_final(BaseModel) .tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_model.py:922: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_model.py:920: in check_final check_final(subcls) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = <class 'swh.model.model.Timestamp'> def check_final(cls): if hasattr(cls, "object_type"): assert cls.object_type not in object_types object_types.add(cls.object_type) if cls.__subclasses__(): > assert not hasattr(cls, "object_type") E AssertionError: assert not True E + where True = hasattr(<class 'swh.model.model.Timestamp'>, 'object_type') .tox/py3-full/lib/python3.7/site-packages/swh/model/tests/test_model.py:918: AssertionError