style: add flags for tests coverage

- Some are already tested but the coverage report can't see it.
- Some are not necessary to test or too hard to test on GitHub's CI
This commit is contained in:
Karim shoair
2025-08-17 01:02:14 +03:00
parent 009bbb20c0
commit 2f402f4835
13 changed files with 121 additions and 101 deletions
+4 -2
View File
@@ -169,7 +169,9 @@ class Selector(SelectorsGeneration):
"Storage class must be wrapped with lru_cache decorator, see docs for info"
)
if not issubclass(storage.__wrapped__, StorageSystemMixin):
if not issubclass(
storage.__wrapped__, StorageSystemMixin
): # pragma: no cover
raise ValueError(
"Storage system must be inherited from class `StorageSystemMixin`"
)
@@ -1400,7 +1402,7 @@ class Selectors(List[Selector]):
"""Returns the length of the current list"""
return len(self)
def __getstate__(self) -> Any:
def __getstate__(self) -> Any: # pragma: no cover
# lxml don't like it :)
raise TypeError("Can't pickle Selectors object")