test setting up complete config

This commit is contained in:
deathbybandaid 2019-05-30 14:10:37 -04:00
parent 72edc5f33c
commit 663f7f3182

View File

@ -2,6 +2,7 @@
from __future__ import unicode_literals, absolute_import, division, print_function
"""A way to read the bot's config without bot"""
import sopel.config
from sopel.cli.run import build_parser, get_configuration
import sys
@ -25,6 +26,9 @@ class BotConfig():
# Filename
self.filename = self.config.filename
# load Sopel config fully
sopel.config.Config(self.config.filename)
# load as dict
config = configparser.ConfigParser()
config.read(self.filename)