fix coverage

This commit is contained in:
collerek
2020-08-09 07:53:06 +02:00
parent 241628b1d9
commit fa00f7b011
3 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ class Model(list, metaclass=ModelMetaclass):
return self.values.dict() == other.values.dict()
def __same__(self, other: "Model") -> bool:
if self.__class__ != other.__class__:
if self.__class__ != other.__class__: # pragma no cover
return False
return self._orm_id == other._orm_id or (
self.values is not None and other.values is not None and self.pk == other.pk