Skip to content
Snippets Groups Projects
Commit 607741fa authored by Denis Vermylen (dve)'s avatar Denis Vermylen (dve) Committed by DVE
Browse files

[FIX] sale_stock: add flexibility to tests

test_sale_stock_lead_time.py compares dates and expect them to be the same.
Sometimes, the dates would differ by a second, because they are generated at
different moment during the execution.

This commit adds a tolerance of 1 second when comparing the dates.
(and changed from comparing Datetime strings to comparing timedeltas)
parent 639421e8
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment