Skip to content
Snippets Groups Projects
Commit 564b71fe authored by Carlos Vega's avatar Carlos Vega
Browse files

fixed office availability test. first name and last name must be unicode

parent e0437f70
No related branches found
No related tags found
1 merge request!182fixed problem with unicode characters in names when checking office availability for daily planning
Pipeline #7294 passed
......@@ -25,7 +25,9 @@ class OfficeAvailabilityTest(TestCase):
start_date = datetime.datetime(today.year, today.month, today.day, tzinfo=today.tzinfo) #today midnight
end_date = start_date + datetime.timedelta(days=1)
office_availability = OfficeAvailability(u'{} {}'.format('âêîôûŵŷäëïöüẅÿà', 'èìòùẁỳáéíóúẃýćńóśźżąę'),
first_name = u'âêîôûŵŷäëïöüẅÿà'
last_name = u'èìòùẁỳáéíóúẃýćńóśźżąę'
office_availability = OfficeAvailability(u'{} {}'.format(first_name, last_name),
start=start_date, end=end_date, office_start='8:00', office_end='18:00')
#no availabilties added yet
......
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