Add unit tests for RelativeDataPath and save_from_memory
This commit is contained in:
parent
c1915759b4
commit
2c215b9f81
4 changed files with 199 additions and 2 deletions
|
|
@ -82,7 +82,6 @@ class OFMThing(lt.Thing):
|
|||
return rel_data_path
|
||||
|
||||
|
||||
# TODO Write tests for this
|
||||
class RelativeDataPath(RootModel[str]):
|
||||
"""A relative path that is validated, and can have a Thing assigned to it.
|
||||
|
||||
|
|
|
|||
|
|
@ -679,7 +679,6 @@ class BaseCamera(OFMThing, ABC):
|
|||
image = image.resize(save_resolution, Image.Resampling.BOX)
|
||||
try:
|
||||
save_kwargs: dict[str, Any] = {}
|
||||
# TODO: Test that the save_kwargs are called as expected for different formats.
|
||||
jpeg_exts = BASE_IMAGE_FORMATS["jpeg"].supported_extensions
|
||||
if resolved_path.lower().endswith(jpeg_exts):
|
||||
# Per PIL documentation,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue