Skip to content

Commit a2801fb

Browse files
committed
another minor fix
1 parent 9caeb4d commit a2801fb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

tests/unit/api/test_Fast_API__Offline_Docs.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)