mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-21 12:20:21 -07: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:
parent
7bc2660017
commit
0221d1ad20
4 changed files with 24 additions and 6 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue