Fakultas Ilmu Komputer UI

Commit b9985550 authored by Farah Alhaniy's avatar Farah Alhaniy
Browse files

[GREEN] Fix indentation in FT

parent ef4ee879
Pipeline #28394 passed with stages
in 21 minutes and 58 seconds
......@@ -131,16 +131,16 @@ class NewVisitorTest(FunctionalTest):
inputbox.send_keys(Keys.ENTER)
data = Item.objects.all()
date2 = ''
for item in data:
if (item.text=='Buy milk'):
date = item.created_at
tz = pytz.timezone('Asia/Jakarta')
date = date.astimezone(tz)
if ((int(date.strftime("%H"))) <= 11) :
date2 = str(date.strftime("%b. %d, %Y, %-I:%M a.m."))
else :
date2 = str(date.strftime("%b. %d, %Y, %-I:%M p.m."))
date2 = ''
for item in data:
if (item.text=='Buy milk'):
date = item.created_at
tz = pytz.timezone('Asia/Jakarta')
date = date.astimezone(tz)
if ((int(date.strftime("%H"))) <= 11) :
date2 = str(date.strftime("%b. %d, %Y, %-I:%M a.m."))
else :
date2 = str(date.strftime("%b. %d, %Y, %-I:%M p.m."))
self.wait_for_row_in_list_table('1: Buy milk '+date2)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment