specter-desktop/tests/test_config.py
2020-12-06 15:40:22 +01:00

12 lines
310 B
Python

""" testing the config.py """
from flask import Config
def test_config():
" how can you read the config if do not create an app? " ""
config = Config(".")
print(config)
config.from_object("cryptoadvance.specter.config.DevelopmentConfig")
print(config)
assert config["PORT"] == 25441