def test_float_number():
 assert (hug.types.float_number('1.1') == 1.1)
 assert (hug.types.float_number('1') == float(1))
 assert (hug.types.float_number(1.1) == 1.1)
 with pytest.raises(ValueError):
  hug.types.float_number('bacon')

def test_float_number ( ) : assert ( hug . types . float_number ( '1.1' ) == 1.1 ) assert ( hug . types . float_number ( '1' ) == float ( 1 ) ) assert ( hug . types . float_number ( 1.1 ) == 1.1 ) with pytest . raises ( ValueError ) : hug . types . float_number ( 'bacon' )
tests to ensure the float type correctly allows floating point values .