Example #1
0
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
Example #2
0
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
Example #3
0
def test___repr__(settings, app):
    config_vars = ConfigVars(settings, app)

    assert repr(config_vars) == repr(config_vars._ConfigVars__data)
Example #4
0
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
Example #5
0
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