We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa19fec commit 19a238eCopy full SHA for 19a238e
1 file changed
tests/module/test_types.py
@@ -107,9 +107,9 @@ def test_from_str(self):
107
108
def test_from_float(self):
109
"""Test angles constructed from floats dump to json as formatted strings"""
110
- t = Target(ra=10, dec=20)
+ t = Target(ra=10.5, dec=20)
111
dumped = t.model_dump_json()
112
- assert dumped == '{"ra":"10","dec":"20"}'
+ assert dumped == '{"ra":"10.5","dec":"20"}'
113
114
def test_angle_attributes(self):
115
"""Test angles are accessible on the model"""
0 commit comments