Skip to content

Commit 19a238e

Browse files
committed
Make test explicit that Angle accepts floats
1 parent aa19fec commit 19a238e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/module/test_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ def test_from_str(self):
107107

108108
def test_from_float(self):
109109
"""Test angles constructed from floats dump to json as formatted strings"""
110-
t = Target(ra=10, dec=20)
110+
t = Target(ra=10.5, dec=20)
111111
dumped = t.model_dump_json()
112-
assert dumped == '{"ra":"10","dec":"20"}'
112+
assert dumped == '{"ra":"10.5","dec":"20"}'
113113

114114
def test_angle_attributes(self):
115115
"""Test angles are accessible on the model"""

0 commit comments

Comments
 (0)