Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
e0cbb058
Unverified
Commit
e0cbb058
authored
8 years ago
by
Damien Bouvy
Browse files
Options
Downloads
Patches
Plain Diff
[IMP] mail: add basic for update notification (ping)
Ensures no regression on
a3509d28
parent
106840c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
addons/mail/tests/__init__.py
+1
-0
1 addition, 0 deletions
addons/mail/tests/__init__.py
addons/mail/tests/test_update_notification.py
+11
-0
11 additions, 0 deletions
addons/mail/tests/test_update_notification.py
with
12 additions
and
0 deletions
addons/mail/tests/__init__.py
+
1
−
0
View file @
e0cbb058
...
...
@@ -10,3 +10,4 @@ import test_message_track
import
test_mail_template
import
test_invite
import
test_ir_actions
import
test_update_notification
This diff is collapsed.
Click to expand it.
addons/mail/tests/test_update_notification.py
0 → 100644
+
11
−
0
View file @
e0cbb058
# -*- coding: utf-8 -*-
from
odoo.tests.common
import
TransactionCase
class
TestUpdateNotification
(
TransactionCase
):
def
test_user_count
(
self
):
ping_msg
=
self
.
env
[
'
publisher_warranty.contract
'
].
with_context
(
active_test
=
False
).
_get_message
()
user_count
=
self
.
env
[
'
res.users
'
].
search_count
([(
'
active
'
,
'
=
'
,
True
)])
self
.
assertEqual
(
ping_msg
.
get
(
'
nbr_users
'
),
user_count
,
'
Update Notification: Users count is badly computed in ping message
'
)
share_user_count
=
self
.
env
[
'
res.users
'
].
search_count
([(
'
active
'
,
'
=
'
,
True
),
(
'
share
'
,
'
=
'
,
True
)])
self
.
assertEqual
(
ping_msg
.
get
(
'
nbr_share_users
'
),
share_user_count
,
'
Update Notification: Portal Users count is badly computed in ping message
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment