Remove redundant conditional for CF Redis

This is now used in all environments and we've removed support for
non-CF Redis.
This commit is contained in:
Leo Hemsted
2022-04-20 11:41:33 +01:00
parent bf083b28aa
commit 0457850fc0
2 changed files with 1 additions and 10 deletions

View File

@@ -29,11 +29,3 @@ def test_extract_cloudfoundry_config_populates_other_vars(os_environ, vcap_servi
assert os.environ['SQLALCHEMY_DATABASE_URI'] == 'postgresql uri'
assert os.environ['REDIS_URL'] == 'redis uri'
def test_extract_cloudfoundry_config_copes_if_redis_not_set(os_environ, vcap_services):
del vcap_services['redis']
os.environ['VCAP_SERVICES'] = json.dumps(vcap_services)
extract_cloudfoundry_config()
assert 'REDIS_URL' not in os.environ