Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | pbaggers |
Reply From: | jgodfrey |
I’d probably just write a replacement function that returns whatever date/time values you want to test against (in a format that matches the values returned by get_datetime()
). Then, for testing, just replace the calls to the real function with calls to your replacement function. That way, you can easily test against any date/time value(s) you want.
Thanks. This works just fine for me! I used OS.get_feature(“standalone”) to differentiate between functions.
pbaggers | 2020-08-06 08:44