Struct moved to gen.lib

This commit is contained in:
Doug Blank 2015-12-27 07:46:05 -05:00
parent 84fc198a6d
commit 84e484bb64

View File

@ -24,7 +24,8 @@ import unittest
from .. import (Person, Family, Event, Source, Place, Citation,
Repository, MediaObject, Note, Tag)
from gramps.gen.merge.diff import import_as_dict, from_struct
from gramps.gen.lib.struct import Struct
from gramps.gen.merge.diff import import_as_dict
from gramps.cli.user import User
from gramps.gen.merge.diff import *
@ -102,10 +103,10 @@ def generate_case(obj):
name = "test_serialize_%s_%s" % (obj.__class__.__name__, obj.handle)
setattr(DatabaseCheck, name, test)
####
def test2(self):
self.assertEqual(obj.serialize(), from_struct(struct).serialize())
name = "test_create_%s_%s" % (obj.__class__.__name__, obj.handle)
setattr(DatabaseCheck, name, test2)
#def test2(self):
# self.assertEqual(obj.serialize(), from_struct(struct).serialize())
#name = "test_create_%s_%s" % (obj.__class__.__name__, obj.handle)
#setattr(DatabaseCheck, name, test2)
db = import_as_dict("example/gramps/example.gramps", User())
for table in db._tables.keys():