Example #1
0
def test_missing_secrets_doesnt_override_redis_sesssions_secret():
    result = app.missing_secrets({'redis.sessions.secret': 'foo'})

    assert 'secret_key' in result
    assert 'redis.sessions.secret' not in result
Example #2
0
def test_missing_secrets_generates_secret_key():
    result = app.missing_secrets({})

    assert 'secret_key' in result
    assert 'redis.sessions.secret' in result