changeset 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 6f841a55eabf
children 08e4399c3ae4
files test/db_test_base.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/db_test_base.py	Wed Oct 18 15:49:53 2023 -0400
+++ b/test/db_test_base.py	Wed Oct 18 18:56:19 2023 -0400
@@ -3059,6 +3059,9 @@
 
             # This is needed, otherwise journals won't be there for anydbm
             self.db.commit()
+
+            self.assertEqual(self.db.user.lookup("duplicate"), active_dupe_id)
+
         finally:
             shutil.rmtree('_test_export')
 

Roundup Issue Tracker: http://roundup-tracker.org/