equal
deleted
inserted
replaced
52 with self.temporary_appobjects(AParser): |
52 with self.temporary_appobjects(AParser): |
53 session = self.repo.internal_session() |
53 session = self.repo.internal_session() |
54 stats = dfsource.pull_data(session, force=True) |
54 stats = dfsource.pull_data(session, force=True) |
55 self.commit() |
55 self.commit() |
56 # test import stats |
56 # test import stats |
57 self.assertEqual(sorted(stats.keys()), ['created', 'updated']) |
57 self.assertEqual(sorted(stats.keys()), ['checked', 'created', 'updated']) |
58 self.assertEqual(len(stats['created']), 1) |
58 self.assertEqual(len(stats['created']), 1) |
59 entity = self.execute('Card X').get_entity(0, 0) |
59 entity = self.execute('Card X').get_entity(0, 0) |
60 self.assertIn(entity.eid, stats['created']) |
60 self.assertIn(entity.eid, stats['created']) |
61 self.assertEqual(stats['updated'], set()) |
61 self.assertEqual(stats['updated'], set()) |
62 # test imported entities |
62 # test imported entities |