diff 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
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/