mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Introduce and use locale-naive rfc2822 date format function (#44868)
* Introduce and use locale-naive rfc2822 date format function. Fixes #44857 * Adjust test expected response
This commit is contained in:
@@ -362,7 +362,7 @@ def test_Request_open_last_mod(urlopen_mock, install_opener_mock):
|
||||
args = urlopen_mock.call_args[0]
|
||||
req = args[0]
|
||||
|
||||
assert req.headers.get('If-modified-since') == now.strftime('%a, %d %b %Y %H:%M:%S +0000')
|
||||
assert req.headers.get('If-modified-since') == now.strftime('%a, %d %b %Y %H:%M:%S -0000')
|
||||
|
||||
|
||||
def test_Request_open_headers_not_dict(urlopen_mock, install_opener_mock):
|
||||
|
||||
Reference in New Issue
Block a user