summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauréline Guérin <zebuline@entrouvert.com>2020-01-31 10:54:25 (GMT)
committerLauréline Guérin <zebuline@entrouvert.com>2020-01-31 14:17:26 (GMT)
commit8e7e745f5d2e77ce11b2233534a7042a3d374aa3 (patch)
treeec9892f962e49cfbcbb398bb238323aaa2346ffe
parent11882c5810d8b45b7c17072bff83d7815d5fa601 (diff)
downloadcombo-wip/39438-warnings.zip
combo-wip/39438-warnings.tar.gz
combo-wip/39438-warnings.tar.bz2
misc: PytestUnknownMarkWarning pytest.mark.freeze_time (#39438)wip/39438-warnings
PytestUnknownMarkWarning: Unknown pytest.mark.freeze_time - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
-rw-r--r--tests/test_notification.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_notification.py b/tests/test_notification.py
index ebb4756..bd121ba 100644
--- a/tests/test_notification.py
+++ b/tests/test_notification.py
@@ -284,8 +284,8 @@ def test_notification_id_and_origin(john_doe):
@mock.patch('combo.utils.requests_wrapper.RequestsSession.request')
-@pytest.mark.freeze_time('2016-01-02')
def test_notify_remote_items(mock_get, app, john_doe, jane_doe, regie, monkeypatch, freezer):
+ freezer.move_to('2016-01-02')
datetime_format = '%Y-%m-%dT%H:%M:%S'
invoice_now = now()
invoice_now = freezer()