Comment 9 for bug 2045588

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-swift-storage (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/charm-swift-storage/+/902661
Committed: https://opendev.org/openstack/charm-swift-storage/commit/a9d5d3b1864835224b21a885b7a172d8f5901d1c
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit a9d5d3b1864835224b21a885b7a172d8f5901d1c
Author: Corey Bryant <email address hidden>
Date: Mon Dec 4 15:47:20 2023 -0500

    Mock datetime instead of redefining standard library

    This fixes up the test to mock the datetime calls specifically in
    the test that needs to mock them, rather than the prior approach
    which was redefining the behavior of the standard library function
    globally.

    Closes-Bug: #2045588
    Change-Id: I9c585c91c5527a61e4a8dbcba0a8a01108cd9b2e
    (cherry picked from commit 72e22a94ed4966ff6fb2fba41bac1b204dbd4c14)