You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units/module_utils
Sam Doran c4f442ed5a
facts - fix incorrect time for some date_time_facts (#70665)
The iso8601_micro and iso8601 facts incorrectly called now.utcnow(), resulting
in a new timestamp at the time it was called, not a conversion of the previously
stored timestamp.

Correct this by capturing the UTC timestamp once then calculating the local
time using the UTC offset of the current system.

* Use time.time() for getting the current time
* Convert from that stored epoch timestamp to local and UTC times
* Used existing timestamp for epoch time
* Add unit tests that validate the formate of the return value rather than an exact value since mocking time and timezone is non-trivial
4 years ago
..
basic basic: Add name of aliases in error message (#69427) 4 years ago
common Add intentional unit tests for basic._set_cwd and common.dict_merge (#70283) 4 years ago
facts facts - fix incorrect time for some date_time_facts (#70665) 4 years ago
json_utils Clean up unit test boilerplate. 4 years ago
parsing Clean up unit test boilerplate. 4 years ago
urls Add multipart/form-data functionality (#69376) 4 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
conftest.py Clean up unit test boilerplate. 4 years ago
test_api.py api: time.clock compatible code (#70650) 4 years ago
test_distro.py Clean up unit test boilerplate. 4 years ago