File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -284,15 +284,15 @@ def test__bug__cache_headers_for_static_resources(self):
284284 'fast-api-request-id' ,
285285 'last-modified' ]
286286 assert response .status_code == 200
287- if not_in_github_action (): # weirdly, this only fails locally
288- assert list_set (response .headers ) == headers_list
289- assert 'cache-control' not in response .headers # BUG: todo: see if we should be setting these
287+ # if not_in_github_action(): # weirdly, this only fails locally
288+ assert list_set (response .headers ) == headers_list
289+ assert 'cache-control' not in response .headers # BUG: todo: see if we should be setting these
290290 #assert 'max-age=' in response.headers['cache-control'] # BUG: todo: see if we should be setting these
291- else :
292- headers_list .append ('cache-control' ) # todo: figure out why this work in GitHub Actions and not locally
293- headers_list . remove ( 'last-modified' )
294- assert list_set (response .headers ) == sorted (headers_list )
295- assert 'max-age=' in response .headers ['cache-control' ]
291+ # else:
292+ # headers_list.append('cache-control') # todo: figure out why this work in GitHub Actions and not locally
293+ #
294+ # assert list_set(response.headers) == sorted(headers_list)
295+ # assert 'max-age=' in response.headers['cache-control']
296296
297297 def test_openapi_json_structure (self ): # Test OpenAPI spec structure
298298 response = self .client .get ('/openapi.json' )
You can’t perform that action at this time.
0 commit comments