comparison test/test_liveserver.py @ 6651:da6c9050a79e

Fix modification of Cache_Control The previous code modified the Cache_Control dictionary in the Client class (in one of the cgi tests) which made a later test in test_liveserver fail
author Ralf Schlatterbeck <rsc@runtux.com>
date Mon, 02 May 2022 14:25:15 +0200
parents 5be4f9104cf7
children a193653d6fa4
comparison
equal deleted inserted replaced
6650:5be4f9104cf7 6651:da6c9050a79e
999 # content-length etc. from f.headers. 999 # content-length etc. from f.headers.
1000 self.assertDictEqual({ key: value for (key, value) in 1000 self.assertDictEqual({ key: value for (key, value) in
1001 f.headers.items() if key in expected }, 1001 f.headers.items() if key in expected },
1002 expected) 1002 expected)
1003 1003
1004 @pytest.mark.xfail(reason="Fails with 3600 age on circle ci not sure why")
1005 def test_cache_control_css(self): 1004 def test_cache_control_css(self):
1006 f = requests.get(self.url_base() + '/@@file/style.css', 1005 f = requests.get(self.url_base() + '/@@file/style.css',
1007 headers = {'content-type': "", 1006 headers = {'content-type': "",
1008 'Accept': '*/*'}) 1007 'Accept': '*/*'})
1009 print(f.status_code) 1008 print(f.status_code)

Roundup Issue Tracker: http://roundup-tracker.org/