server/test/unittest_datafeed.py
changeset 8438 2c79c29193e7
parent 7979 8bd5031e2201
child 8544 3d049071957e
equal deleted inserted replaced
8437:c9ab72f0645d 8438:2c79c29193e7
    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