comparison 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
comparison
equal deleted inserted replaced
5971:e5acd1843517 5972:ae35daa5baab
17 from roundup.support import ensureParentsExist 17 from roundup.support import ensureParentsExist
18 from roundup.anypy.strings import s2b 18 from roundup.anypy.strings import s2b
19 19
20 def new_config(debug=False): 20 def new_config(debug=False):
21 config = configuration.CoreConfig() 21 config = configuration.CoreConfig()
22 config.detectors = configuration.UserConfig("share/roundup/templates/classic/detectors/config.ini")
23 config.ext = configuration.UserConfig("share/roundup/templates/classic/extensions/config.ini")
22 config.DATABASE = "db" 24 config.DATABASE = "db"
23 #config.logging = MockNull() 25 #config.logging = MockNull()
24 # these TRACKER_WEB and MAIL_DOMAIN values are used in mailgw tests 26 # these TRACKER_WEB and MAIL_DOMAIN values are used in mailgw tests
25 if debug: 27 if debug:
26 config.LOGGING_LEVEL = "DEBUG" 28 config.LOGGING_LEVEL = "DEBUG"

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