From 8a45ee85499a8dbdbf6561f552299335271bbeb6 Mon Sep 17 00:00:00 2001 From: mhh Date: Tue, 13 Feb 2024 21:04:39 +0100 Subject: [PATCH] Fix formatting --- aleph_message/tests/test_utils.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/aleph_message/tests/test_utils.py b/aleph_message/tests/test_utils.py index 01ae993..349db45 100644 --- a/aleph_message/tests/test_utils.py +++ b/aleph_message/tests/test_utils.py @@ -1,9 +1,14 @@ -from datetime import datetime, date, time +from datetime import date, datetime, time import pytest from pydantic import BaseModel -from aleph_message.utils import Gigabytes, gigabyte_to_mebibyte, extended_json_encoder, dump_content +from aleph_message.utils import ( + Gigabytes, + dump_content, + extended_json_encoder, + gigabyte_to_mebibyte, +) def test_gigabyte_to_mebibyte(): @@ -25,8 +30,13 @@ class TestModel(BaseModel): address: str time: float - assert dump_content({"address": "0x1", "time": 1.0}) == '{"address":"0x1","time":1.0}' - assert dump_content(TestModel(address="0x1", time=1.0)) == '{"address":"0x1","time":1.0}' + assert ( + dump_content({"address": "0x1", "time": 1.0}) == '{"address":"0x1","time":1.0}' + ) + assert ( + dump_content(TestModel(address="0x1", time=1.0)) + == '{"address":"0x1","time":1.0}' + ) @pytest.mark.parametrize(