backups: schedule: tests: Fix failures due to long test run
Closes: #2023 (closed).
When importing the test module, datetime.now() is executed and value is kept. If a test suite runs for a long time, the time deltas are being calculated much later when the test case runs. This creates an difference in expected different between the two values.
Fix this by completely removing all uses of time relative to current date time. Only use absolute date time values. This should not reduce the effectiveness of the test cases.
Tests performed:
- Rerun unit tests for backups module.
Signed-off-by: Sunil Mohan Adapa sunil@medhas.org