From 1183e50f60054fe3bb5d2b51c86e9621f88bfbf6 Mon Sep 17 00:00:00 2001 From: Dorian Lesbre Date: Fri, 19 Feb 2021 13:48:12 +0100 Subject: [PATCH] Fixed tests --- kfet/tests/test_views.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kfet/tests/test_views.py b/kfet/tests/test_views.py index 7d395e7e..eb8db1f4 100644 --- a/kfet/tests/test_views.py +++ b/kfet/tests/test_views.py @@ -4219,8 +4219,8 @@ class HistoryJSONViewTests(ViewTestCaseMixin, TestCase): url_name = "kfet.history.json" url_expected = "/k-fet/history.json" - auth_user = "user" - auth_forbidden = [None, "noaccount"] + auth_user = "team" + auth_forbidden = [None, "user", "noaccount"] def test_ok(self): r = self.client.post(self.url) @@ -4310,6 +4310,8 @@ class SettingsUpdateViewTests(ViewTestCaseMixin, TestCase): "kfet_overdraft_duration": "2 00:00:00", "kfet_overdraft_amount": "25", "kfet_cancel_duration": "00:20:00", + "kfet_history_limit": "5 00:00:00", + "kfet_history_long_limit": "60 00:00:00", } def get_users_extra(self): @@ -4331,6 +4333,8 @@ class SettingsUpdateViewTests(ViewTestCaseMixin, TestCase): "overdraft_duration": timedelta(days=2), "overdraft_amount": Decimal("25"), "cancel_duration": timedelta(minutes=20), + "history_limit": timedelta(days=5), + "history_long_limit": timedelta(days=60), } for key, expected in expected_config.items():