Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion stock_location_orderpoint/tests/test_location_orderpoint.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright 2023 Michael Tietz (MT Software) <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from contextlib import contextmanager
from datetime import timedelta
from unittest.mock import patch

import freezegun
Expand Down Expand Up @@ -96,7 +97,7 @@ def test_cron_replenishment(self):
self.assertFalse(replenish_move)

# create the available quantity -> replenishment
tomorrow = now.replace(day=now.day + 1)
tomorrow = now + timedelta(days=1)
with self._freeze_time(tomorrow):
self._set_qty_in_location(self.product, location_src, 12)

Expand Down