Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMASCH
scheduling-system
Merge requests
!182
fixed problem with unicode characters in names when checking office availability for daily planning
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fixed problem with unicode characters in names when checking office availability for daily planning
hotfix/unicode_error_office_availability
into
master
Overview
0
Commits
2
Pipelines
2
Changes
1
Merged
Carlos Vega
requested to merge
hotfix/unicode_error_office_availability
into
master
6 years ago
Overview
0
Commits
2
Pipelines
2
Changes
1
Expand
0
0
Merge request reports
Viewing commit
564b71fe
Prev
Next
Show latest version
1 file
+
3
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
564b71fe
fixed office availability test. first name and last name must be unicode
· 564b71fe
Carlos Vega
authored
6 years ago
smash/web/tests/test_office_availability.py
+
3
−
1
Options
@@ -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
Loading