Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
dc70c3c9
Commit
dc70c3c9
authored
May 26, 2011
by
Gabriel L. Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add start and end hour and minute to create_calendar_event UNGTestMixin
parent
7ec7fec7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
UNGTestMixin.py
UNGTestMixin.py
+15
-2
No files found.
UNGTestMixin.py
View file @
dc70c3c9
...
...
@@ -110,6 +110,8 @@ class UNGTestMixin(unittest.TestCase):
def
create_calendar_event
(
self
,
event_type
,
name
,
start_month
=
None
,
end_month
=
None
,
start_day
=
None
,
end_day
=
None
,
start_year
=
None
,
end_year
=
None
,
start_hour
=
None
,
end_hour
=
None
,
start_minute
=
None
,
end_minute
=
None
,
do_refresh
=
True
):
"""Create an event at UNG Calendar.
Requires that the UNG Calendar is open."""
...
...
@@ -138,9 +140,20 @@ class UNGTestMixin(unittest.TestCase):
else
:
self
.
selenium
.
type
(
"stop_date_year"
,
start_year
)
if
not
start_hour
:
start_hour
=
unittest
.
time
.
localtime
().
tm_hour
+
1
if
not
end_hour
:
end_hour
=
unittest
.
time
.
localtime
().
tm_hour
+
1
self
.
selenium
.
type
(
"start_date_hour"
,
start_hour
)
self
.
selenium
.
type
(
"stop_date_hour"
,
end_hour
)
if
start_minute
:
self
.
selenium
.
type
(
"start_date_minute"
,
start_minute
)
if
end_minute
:
self
.
selenium
.
type
(
"stop_date_minute"
,
end_minute
)
else
:
self
.
selenium
.
type
(
"stop_date_minute"
,
start_minute
)
self
.
selenium
.
type
(
"//input[@name=
\
"
start_date_hour
\
"
]"
,
unittest
.
time
.
localtime
().
tm_hour
+
1
)
self
.
selenium
.
type
(
"//input[@name=
\
"
stop_date_hour
\
"
]"
,
unittest
.
time
.
localtime
().
tm_hour
+
1
)
self
.
selenium
.
click
(
"//div[@aria-labelledby='ui-dialog-title-new_event_dialog']//button"
)
self
.
wait_for_activities
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment