1
0
Fork 0
Commit graph

10 commits

Author SHA1 Message Date
Lance Edgar 6777f02e06 Fix bug when default config paths do not exist
when fetching initial path listing, to create config object.  should
only affect situations where default file paths are needed, i.e. when
caller does not specify
2024-05-28 22:57:19 -05:00
Lance Edgar 24a86ffeb4 Make WuttaConfig.get_list() return None by default
instead of empty list `[]`
2024-04-14 14:59:32 -05:00
Lance Edgar 49edece2f2 Fix test if local config file exists 2023-11-25 18:05:52 -06:00
Lance Edgar b59e83907c Add config extension class, tests, docs 2023-11-24 18:45:10 -06:00
Lance Edgar 1431555605 Allow factory override in make_config()
also add `winsvc` param for `get_config_paths()` to support
RattailFileMonitor service on windows
2023-11-21 22:25:45 -06:00
Lance Edgar a0186b346e Add common FileConfigTestCase class, in new testing module
hoping i do not regret this decision..  since the tests do not live in
a "real" package i think the only way to share code is to add some
things to the main package
2023-11-20 16:19:22 -06:00
Lance Edgar 427afc27fc Add test to ensure we get correct app handler by default 2023-11-20 09:57:38 -06:00
Lance Edgar b458272207 Add make_engine_from_config() method for AppHandler
and other misc. tweaks needed to get this incorporated into Rattail
2023-11-19 20:36:51 -06:00
Lance Edgar cd2d16e6ac Log warning if ambiguous config key detected 2023-10-29 22:41:33 -05:00
Lance Edgar 5c3c42d6b3 First commit, basic config (with db) and app handler
this has 100% test coverage and i intend to keep it that way.  api
docs have a good start but still need narrative.  several more things
must be added before i can seriously consider incorporating into
rattail but this seemed a good save point
2023-10-28 17:50:13 -05:00