Esempio n. 1
0
    def should_give_correct_info_string():
        # given
        float_field = Float()

        # when
        info_str = float_field._info()

        # then
        assert (
            info_str ==
            "<Float\n  spark type = FloatType\n  nullable = True\n  name = None <- [None, None]\n  parent = None\n>"
        )
Esempio n. 2
0
 def should_give_correct_info_string(float_field: Float):
     assert (
         float_field._info() ==
         "<Float\n  spark type = FloatType\n  nullable = True\n  name = None <- [None, None]\n  parent = None\n>"
     )