Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve test coverage #315

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions qrcode/image/styledpil.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ def draw_embeded_image(self):
def save(self, stream, format=None, **kwargs):
if format is None:
format = kwargs.get("kind", self.kind)
if "kind" in kwargs:
del kwargs["kind"]
kwargs.pop("kind", None)
self._img.save(stream, format=format, **kwargs)

def __getattr__(self, name):
Expand Down
2 changes: 1 addition & 1 deletion qrcode/image/styles/moduledrawers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
from .pil import RoundedModuleDrawer # noqa: F401
from .pil import SquareModuleDrawer # noqa: F401
from .pil import VerticalBarsDrawer # noqa: F401
except ImportError:
except ImportError: # pragma: no cover
pass
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ parallel = True

[coverage:report]
exclude_lines =
pragma: no cover
@abc.abstractmethod
@overload
if (typing\.)?TYPE_CHECKING:
pragma: no cover
raise NotImplementedError
skip_covered = True

[zest.releaser]
Expand Down