Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MHHukiewitz committed Feb 13, 2024
1 parent 3cc5faf commit 8a45ee8
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions aleph_message/tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -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():
Expand All @@ -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(
Expand Down

0 comments on commit 8a45ee8

Please sign in to comment.