Skip to content
Merged
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
9 changes: 8 additions & 1 deletion src/pyipp/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,14 @@ def parse_make_and_model(make_and_model: str) -> tuple[str, str]:
make = "Unknown"
model = "Unknown"
found_make = False
known_makes = ["brother", "canon", "epson", "hp", "xerox"]
known_makes = [
"brother",
"canon",
"epson",
"kyocera",
"hp",
"xerox",
]

test_against = make_and_model.lower()
for known_make in known_makes:
Expand Down
1 change: 1 addition & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import pytest
from aiohttp import ClientSession

from pyipp import IPP
from pyipp.const import DEFAULT_PRINTER_ATTRIBUTES
from pyipp.enums import IppOperation
Expand Down
1 change: 1 addition & 0 deletions tests/test_interface.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Tests for IPP public interface."""
import pytest
from aiohttp import ClientSession

from pyipp import IPP, Printer
from pyipp.const import DEFAULT_PRINTER_ATTRIBUTES
from pyipp.enums import IppOperation
Expand Down
1 change: 1 addition & 0 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from __future__ import annotations

import pytest

from pyipp import models, parser

from . import IPPE10_PRINTER_ATTRS, load_fixture_binary
Expand Down