def test_new_from_dict(config_dict, app): config_vars = ConfigVars.new_from_dict(config_dict, app=app) assert config_vars._ConfigVars__data == config_dict assert config_vars._ConfigVars__app is app
def config_vars(): # Not using new_from_dict() to not spoil coverage cfg = ConfigVars(config_dict(), app(), h=heroku_core()) cfg.data = config_dict() cfg.app = app() return cfg
def test___repr__(settings, app): config_vars = ConfigVars(settings, app) assert repr(config_vars) == repr(config_vars._ConfigVars__data)
def config_vars(config_dict, app, heroku_core): # Not using new_from_dict() to not spoil coverage cfg = ConfigVars(config_dict, app, h=heroku_core) cfg.data = config_dict cfg.app = app return cfg