fix coverage
This commit is contained in:
2
.flake8
2
.flake8
@ -1,5 +1,5 @@
|
||||
[flake8]
|
||||
ignore = ANN101, ANN102, W503
|
||||
max-complexity = 10
|
||||
max-complexity = 8
|
||||
max-line-length = 88
|
||||
exclude = p38venv,.pytest_cache
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user