Fixed tests

This commit is contained in:
Dorian Lesbre 2021-02-19 13:48:12 +01:00
parent a8de7e0ae0
commit 1183e50f60

View file

@ -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():