diff test/memorydb.py @ 5972:ae35daa5baab

Enhance memorydb to load config.detectors and config.ext Memorydb did not load the config.ini files from the tracker's detectors and extensions directories. This caused an update to the classic detectors (that used detectors/config.ini) to break testing.
author John Rouillard <rouilj@ieee.org>
date Thu, 07 Nov 2019 21:09:02 -0500
parents c4f9a152258d
children 8497bf3f23a1
line wrap: on
line diff
--- a/test/memorydb.py	Thu Nov 07 18:35:33 2019 -0500
+++ b/test/memorydb.py	Thu Nov 07 21:09:02 2019 -0500
@@ -19,6 +19,8 @@
 
 def new_config(debug=False):
     config = configuration.CoreConfig()
+    config.detectors = configuration.UserConfig("share/roundup/templates/classic/detectors/config.ini")
+    config.ext = configuration.UserConfig("share/roundup/templates/classic/extensions/config.ini")
     config.DATABASE = "db"
     #config.logging = MockNull()
     # these TRACKER_WEB and MAIL_DOMAIN values are used in mailgw tests

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