Beispiel #1
0
    def test_rebuild_merge(self):
        col = 'not-in-dframe'
        schema = Schema({col: {}})
        new_schema = schema.rebuild(self.dframe)

        self.assertEqual(new_schema[col], {})
Beispiel #2
0
    def test_rebuild_no_merge(self):
        col = 'not-in-dframe'
        schema = Schema({col: {}})
        new_schema = schema.rebuild(self.dframe, overwrite=True)

        self.assertFalse(col in new_schema)
Beispiel #3
0
    def test_rebuild(self):
        schema = Schema()
        new_schema = schema.rebuild(self.dframe)

        self.assertNotEqual(schema, new_schema)