Skip to content

Commit

Permalink
[UPD] copier version 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Osman committed Mar 20, 2024
1 parent e2aaea4 commit b99d2f1
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.19
_commit: v1.20
_src_path: gh:oca/oca-addons-repo-template
additional_ruff_rules: []
ci: GitHub
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repos:
hooks:
- id: whool-init
- repo: https://github.com/oca/maintainer-tools
rev: f71041f22b8cd68cf7c77b73a14ca8d8cd190a60
rev: 9a170331575a265c092ee6b24b845ec508e8ef75
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
Expand Down Expand Up @@ -110,7 +110,7 @@ repos:
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/OCA/pylint-odoo
rev: v8.0.19
rev: v9.0.4
hooks:
- id: pylint_odoo
name: pylint with optional checks
Expand Down
1 change: 1 addition & 0 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ fix = true
extend-select = [
"B",
"C90",
"E501", # line too long (default 88)
"I", # isort
"UP", # pyupgrade
]
Expand Down
3 changes: 2 additions & 1 deletion mail_activity_board/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"development_status": "Beta",
"category": "Social Network",
"website": "https://github.com/OCA/social",
"author": "SDi, David Juaneda, Sodexis, ACSONE SA/NV, Odoo Community Association (OCA)",
"author": "SDi, David Juaneda, Sodexis, ACSONE SA/NV,"
" Odoo Community Association (OCA)",
"license": "AGPL-3",
"installable": True,
"depends": ["calendar", "spreadsheet_dashboard"],
Expand Down
30 changes: 24 additions & 6 deletions mail_outbound_static/tests/test_ir_mail_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ def test_01_from_outgoing_server_domainone(self):
self.assertEqual(
used_mail_server,
expected_mail_server,
f"It using {used_mail_server.name} but we expect to use {expected_mail_server.name}",
(
f"It using {used_mail_server.name}"
f" but we expect to use {expected_mail_server.name}"
),
)

def test_02_from_outgoing_server_domaintwo(self):
Expand All @@ -179,7 +182,10 @@ def test_02_from_outgoing_server_domaintwo(self):
self.assertEqual(
used_mail_server,
expected_mail_server,
f"It using {used_mail_server.name} but we expect to use {expected_mail_server.name}",
(
f"It using {used_mail_server.name}"
f" but we expect to use {expected_mail_server.name}"
),
)

def test_03_from_outgoing_server_another(self):
Expand All @@ -201,7 +207,10 @@ def test_03_from_outgoing_server_another(self):
self.assertEqual(
used_mail_server,
expected_mail_server,
f"It using {used_mail_server.name} but we expect to use {expected_mail_server.name}",
(
f"It using {used_mail_server.name}"
f" but we expect to use {expected_mail_server.name}"
),
)

def test_04_from_outgoing_server_none_use_config(self):
Expand Down Expand Up @@ -277,7 +286,10 @@ def test_06_from_outgoing_server_no_name_from(self):
self.assertEqual(
used_mail_server,
expected_mail_server,
f"It using {used_mail_server.name} but we expect to use {expected_mail_server.name}",
(
f"It using {used_mail_server.name}"
f" but we expect to use {expected_mail_server.name}"
),
)

def test_07_from_outgoing_server_multidomain_1(self):
Expand All @@ -297,7 +309,10 @@ def test_07_from_outgoing_server_multidomain_1(self):
self.assertEqual(
used_mail_server,
expected_mail_server,
f"It using {used_mail_server.name} but we expect to use {expected_mail_server.name}",
(
f"It using {used_mail_server.name}"
f" but we expect to use {expected_mail_server.name}"
),
)

def test_08_from_outgoing_server_multidomain_3(self):
Expand All @@ -317,7 +332,10 @@ def test_08_from_outgoing_server_multidomain_3(self):
self.assertEqual(
used_mail_server,
expected_mail_server,
f"It using {used_mail_server.name} but we expect to use {expected_mail_server.name}",
(
f"It using {used_mail_server.name}"
f" but we expect to use {expected_mail_server.name}"
),
)

def test_09_not_valid_domain_whitelist(self):
Expand Down
3 changes: 2 additions & 1 deletion mail_partner_forwarding/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ class ResPartner(models.Model):
"res.partner",
string="Forwarding Partner",
help="Messages will be forwarded only for partners that are followers but no "
"partners being notify because they belong to channel that is following the thread",
"""partners being notify because they belong to channel that is following
the thread""",
)

0 comments on commit b99d2f1

Please sign in to comment.