def mock_pydatetime(mock_time, mock_datetime_now):
    """Monkey patch time.time & datetime.datetime.now
    Returns a function that takes datetime as string as input
    and sets that to time.time() and datetime.datetime.now()"""

    def wrapper(dt):
        mock_time(dt)
        mock_datetime_now(dt)
    return wrapper
Monkey patch time.time & datetime.datetime.now
Returns a function that takes datetime as string as input
and sets that to time.time() and datetime.datetime.now()
rocketry/test/conftest.py