mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-01 15:08:11 +08:00
revert removal of cache control headers (#2118)
* revert removal of cache control headers * always generate cache header for health route
This commit is contained in:
@@ -32,6 +32,7 @@ class ConfigTests(unittest.TestCase):
|
||||
open_browser="false",
|
||||
force_https="false",
|
||||
flask_secret_key="secret",
|
||||
generate_cache_control_headers="false",
|
||||
auth_type="session",
|
||||
insecure_test_environment="false",
|
||||
index="false",
|
||||
@@ -67,6 +68,7 @@ class ConfigTests(unittest.TestCase):
|
||||
open_browser="false",
|
||||
force_https="false",
|
||||
flask_secret_key="secret",
|
||||
generate_cache_control_headers="false",
|
||||
auth_type="session",
|
||||
index="false",
|
||||
allowed_matrix_types=[],
|
||||
@@ -116,6 +118,7 @@ class ConfigTests(unittest.TestCase):
|
||||
open_browser=open_browser,
|
||||
force_https=force_https,
|
||||
flask_secret_key=flask_secret_key,
|
||||
generate_cache_control_headers=generate_cache_control_headers,
|
||||
auth_type=auth_type,
|
||||
index=index,
|
||||
allowed_matrix_types=allowed_matrix_types,
|
||||
|
||||
@@ -49,7 +49,7 @@ class TestServerConfig(ConfigTests):
|
||||
def test_complete_config_checks_all_attr(self, mock_check_attrs):
|
||||
mock_check_attrs.side_effect = BaseConfig.validate_correct_type_of_configuration_attribute()
|
||||
self.server_config.complete_config(self.context)
|
||||
self.assertEqual(mock_check_attrs.call_count, 20)
|
||||
self.assertEqual(mock_check_attrs.call_count, 21)
|
||||
|
||||
def test_handle_app__throws_error_if_port_doesnt_exist(self):
|
||||
config = self.get_config(port=99999999)
|
||||
|
||||
Reference in New Issue
Block a user