Fixed tests
This commit is contained in:
parent
a8de7e0ae0
commit
1183e50f60
1 changed files with 6 additions and 2 deletions
|
@ -4219,8 +4219,8 @@ class HistoryJSONViewTests(ViewTestCaseMixin, TestCase):
|
||||||
url_name = "kfet.history.json"
|
url_name = "kfet.history.json"
|
||||||
url_expected = "/k-fet/history.json"
|
url_expected = "/k-fet/history.json"
|
||||||
|
|
||||||
auth_user = "user"
|
auth_user = "team"
|
||||||
auth_forbidden = [None, "noaccount"]
|
auth_forbidden = [None, "user", "noaccount"]
|
||||||
|
|
||||||
def test_ok(self):
|
def test_ok(self):
|
||||||
r = self.client.post(self.url)
|
r = self.client.post(self.url)
|
||||||
|
@ -4310,6 +4310,8 @@ class SettingsUpdateViewTests(ViewTestCaseMixin, TestCase):
|
||||||
"kfet_overdraft_duration": "2 00:00:00",
|
"kfet_overdraft_duration": "2 00:00:00",
|
||||||
"kfet_overdraft_amount": "25",
|
"kfet_overdraft_amount": "25",
|
||||||
"kfet_cancel_duration": "00:20:00",
|
"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):
|
def get_users_extra(self):
|
||||||
|
@ -4331,6 +4333,8 @@ class SettingsUpdateViewTests(ViewTestCaseMixin, TestCase):
|
||||||
"overdraft_duration": timedelta(days=2),
|
"overdraft_duration": timedelta(days=2),
|
||||||
"overdraft_amount": Decimal("25"),
|
"overdraft_amount": Decimal("25"),
|
||||||
"cancel_duration": timedelta(minutes=20),
|
"cancel_duration": timedelta(minutes=20),
|
||||||
|
"history_limit": timedelta(days=5),
|
||||||
|
"history_long_limit": timedelta(days=60),
|
||||||
}
|
}
|
||||||
|
|
||||||
for key, expected in expected_config.items():
|
for key, expected in expected_config.items():
|
||||||
|
|
Loading…
Reference in a new issue