mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-11-21 23:43:11 +01:00
Clearing some settings at the end of test
This commit is contained in:
parent
57ad29f46b
commit
f5bff3af4e
@ -40,6 +40,7 @@ class TimeSpentAutoTestCase(TestCase):
|
||||
"""Tests automatic time_spent calculation."""
|
||||
# activate automatic calculation
|
||||
helpdesk_settings.FOLLOWUP_TIME_SPENT_AUTO = True
|
||||
helpdesk_settings.USE_TZ = True
|
||||
|
||||
# ticket creation date, follow-up creation date, assertion value
|
||||
TEST_VALUES = (
|
||||
@ -180,6 +181,9 @@ class TimeSpentAutoTestCase(TestCase):
|
||||
self.assertEqual(followup1.time_spent.total_seconds(), assertion_delta.total_seconds())
|
||||
self.assertEqual(ticket.time_spent.total_seconds(), assertion_delta.total_seconds())
|
||||
|
||||
# removing opening hours and holidays
|
||||
helpdesk_settings.FOLLOWUP_TIME_SPENT_OPENING_HOURS = {}
|
||||
helpdesk_settings.FOLLOWUP_TIME_SPENT_EXCLUDE_HOLIDAYS = ()
|
||||
|
||||
def test_followup_time_spent_auto_exclude_statuses(self):
|
||||
"""Tests automatic time_spent calculation OPEN_STATUS exclusion."""
|
||||
|
Loading…
Reference in New Issue
Block a user