Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Xiaowu Zhang
erp5
Commits
8be12c2a
Commit
8be12c2a
authored
Dec 14, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Event workflow changed in
b4b5bcf8
Adjust test to match new workflow.
parent
edec8d8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
product/ERP5/tests/testICal.py
product/ERP5/tests/testICal.py
+8
-5
No files found.
product/ERP5/tests/testICal.py
View file @
8be12c2a
...
...
@@ -128,7 +128,7 @@ class TestICal(ERP5TypeTestCase):
self
.
assertEquals
(
feed_dict
[
'STATUS'
],
'TENTATIVE'
)
# set start date, description and change workflow state - new
event
.
receive
()
event
.
plan
()
event
.
setStartDate
(
'2007/08/15 08:30 UTC'
)
event
.
setDescription
(
'Event One description'
)
transaction
.
commit
()
...
...
@@ -152,7 +152,8 @@ class TestICal(ERP5TypeTestCase):
self
.
assertTrue
(
feed_dict
[
'CATEGORIES'
]
in
(
'NEWSALEOP'
,
'New Opportunity'
))
# forward compatibility
# set stop date and change workflow state - assigned
event
.
assign
()
event
.
confirm
()
event
.
start
()
event
.
setStopDate
(
'2007/08/15 13:30 UTC'
)
transaction
.
commit
()
self
.
tic
()
...
...
@@ -161,11 +162,13 @@ class TestICal(ERP5TypeTestCase):
self
.
assertEquals
(
feed_dict
[
'DTEND'
],
'20070815T133000Z'
)
self
.
assertEquals
(
feed_dict
[
'STATUS'
],
'CONFIRMED'
)
# cancel event
event
.
cancel
()
# cancel event but first remove previously created
module
.
manage_delObjects
([
event
.
getId
()])
event2
=
module
.
newContent
(
title
=
'Event Two'
,
portal_type
=
'Phone Call'
)
event2
.
cancel
()
transaction
.
commit
()
self
.
tic
()
feed_dict
=
self
.
getICalFeed
(
module
)
self
.
assertEquals
(
feed_dict
[
'STATUS'
],
'CANCELLED'
)
...
...
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