Skip to content

Commit

Permalink
test: replace prints with logger outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
hollandjg committed Nov 20, 2023
1 parent 38e4982 commit b294f1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def serializer_dump_load_string_strategy(draw):
loads, dumps = serializer.module.loads, serializer.module.dumps

def _load_dump_via_string(o):
print(f"load dump via string using {serializer.module=}")
logger.info(f"load dump via string using {serializer.module=}")
return loads(dumps(o))

return _load_dump_via_string
Expand All @@ -55,7 +55,7 @@ def serializer_dump_load_binary_file_strategy(draw):
load, dump = serializer.module.load, serializer.module.dump

def _load_dump_via_disk(o):
print(f"load dump via disk using {serializer.module=}")
logger.info(f"load dump via disk using {serializer.module=}")
with tempfile.TemporaryDirectory() as tempdir:
filename = str(uuid.uuid1())
with open(pathlib.Path(tempdir, filename), f"w{serializer.file_type}") as f:
Expand Down

0 comments on commit b294f1d

Please sign in to comment.