Skip to content

Commit

Permalink
Added TODOs for float_precision issue
Browse files Browse the repository at this point in the history
  • Loading branch information
holtskinner committed Sep 8, 2023
1 parent eea1fe6 commit 5456326
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ class Squid(proto.Message):
assert re.search(r"massKg.*name", j)


# TODO: https://github.com/googleapis/proto-plus-python/issues/390
def test_json_float_precision():
class Squid(proto.Message):
name = proto.Field(proto.STRING, number=1)
Expand Down
1 change: 1 addition & 0 deletions tests/test_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ class Color(proto.Enum):
assert new_s == s


# TODO: https://github.com/googleapis/proto-plus-python/issues/390
def test_serialize_to_dict_float_precision():
class Squid(proto.Message):
mass_kg = proto.Field(proto.FLOAT, number=1)
Expand Down

0 comments on commit 5456326

Please sign in to comment.