Skip to content
Snippets Groups Projects
Commit a10a449a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

indentation

parent c2f6c526
No related branches found
No related tags found
1 merge request!336Pylint checks
......@@ -144,11 +144,13 @@ class TestDailyPlanningApi(LoggedInWithWorkerTestCase):
def test_multi_day_holiday(self):
holiday = Holiday.objects.create(person=self.worker,
datetime_start=timezone.now().replace(year=2017, month=9, day=4,
hour=10, minute=0, second=0, microsecond=0),
datetime_start=timezone.now().replace(year=2017, month=9, day=4,
hour=10, minute=0, second=0,
microsecond=0),
datetime_end=timezone.now().replace(year=2017, month=9, day=6,
hour=15, minute=0, second=0, microsecond=0)
)#monday to wed
hour=15, minute=0, second=0,
microsecond=0)
) # monday to wed
holiday.save()
#monday
......@@ -156,7 +158,7 @@ class TestDailyPlanningApi(LoggedInWithWorkerTestCase):
self.assertEqual(response.status_code, 200)
holidays = json.loads(response.content)['holidays']
self.assertEqual(1, len(holidays))
holiday = holidays[0]
self.assertTrue('2017-09-04T10:00:00' in holiday['link_when'])
self.assertTrue('2017-09-04T23:59:00' in holiday['link_end'])
......@@ -176,7 +178,7 @@ class TestDailyPlanningApi(LoggedInWithWorkerTestCase):
self.assertEqual(response.status_code, 200)
holidays = json.loads(response.content)['holidays']
self.assertEqual(1, len(holidays))
holiday = holidays[0]
self.assertTrue('2017-09-06T00:00:00' in holiday['link_when'])
self.assertTrue('2017-09-06T15:00:00' in holiday['link_end'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment