Mercurial > p > roundup > code
comparison test/db_test_base.py @ 7666:027912a59f49
test: add explicit check for imported data.
Make sure the duplicate user is properly retreived using lookup by username.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 18 Oct 2023 18:56:19 -0400 |
| parents | 978285986b2c |
| children | 5b41018617f2 |
comparison
equal
deleted
inserted
replaced
| 7665:6f841a55eabf | 7666:027912a59f49 |
|---|---|
| 3057 'which conflicted with 6', | 3057 'which conflicted with 6', |
| 3058 log[success_msg_location][2]) | 3058 log[success_msg_location][2]) |
| 3059 | 3059 |
| 3060 # This is needed, otherwise journals won't be there for anydbm | 3060 # This is needed, otherwise journals won't be there for anydbm |
| 3061 self.db.commit() | 3061 self.db.commit() |
| 3062 | |
| 3063 self.assertEqual(self.db.user.lookup("duplicate"), active_dupe_id) | |
| 3064 | |
| 3062 finally: | 3065 finally: |
| 3063 shutil.rmtree('_test_export') | 3066 shutil.rmtree('_test_export') |
| 3064 | 3067 |
| 3065 # compare with snapshot of the database | 3068 # compare with snapshot of the database |
| 3066 for cn, items in orig.items(): | 3069 for cn, items in orig.items(): |
