-
-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0ab2c4
commit 46e929f
Showing
16 changed files
with
71 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
# Do NOT update manually; changes here will be overwritten by Copier | ||
_commit: v1.3.6 | ||
_commit: v1.5.2 | ||
_src_path: gh:oca/oca-addons-repo-template | ||
ci: Travis | ||
dependency_installation_mode: PIP | ||
generate_requirements_txt: true | ||
include_wkhtmltopdf: false | ||
odoo_version: 14.0 | ||
org_name: Odoo Community Association (OCA) | ||
org_slug: OCA | ||
rebel_module_groups: [] | ||
repo_description: 'TODO: add repo description.' | ||
repo_name: partner-contact | ||
repo_slug: partner-contact | ||
repo_website: https://github.com/OCA/partner-contact | ||
travis_apt_packages: [] | ||
travis_apt_sources: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,34 @@ name: pre-commit | |
|
||
on: | ||
pull_request: | ||
branches: | ||
- "14.0*" | ||
push: | ||
branches: | ||
- "14.0" | ||
- "14.0-ocabot-*" | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Get python version | ||
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV | ||
- uses: actions/cache@v1 | ||
with: | ||
# The pylint-odoo version we use here does not support python 3.10 | ||
# https://github.com/OCA/oca-addons-repo-template/issues/80 | ||
# We also need to pin to an older version of python for older odoo versions | ||
# where we are not using black > 21. Older black versions won't work with | ||
# Python 3.9.8+, and we can't bump black without reformatting. | ||
python-version: "3.9.7" | ||
- uses: pre-commit/[email protected] | ||
path: ~/.cache/pre-commit | ||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} | ||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
- name: Run pre-commit | ||
run: pre-commit run --all-files --show-diff-on-failure --color=always | ||
- name: Check that all files generated by pre-commit are in git | ||
run: | | ||
newfiles="$(git ls-files --others --exclude-from=.gitignore)" | ||
if [ "$newfiles" != "" ] ; then | ||
echo "Please check-in the following files:" | ||
echo "$newfiles" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,15 +41,15 @@ def test_good_emails(self): | |
def test_email_domain_normalization(self): | ||
"""Test normalization of email domain names, including punycode.""" | ||
self.test_partner.write({"email": "[email protected]"}) | ||
self.assertEqual(self.test_partner.email, u"goodemail@éxample.com") | ||
self.assertEqual(self.test_partner.email, "goodemail@éxample.com") | ||
|
||
def test_multi_email_domain_normalization(self): | ||
"""Test normalization of email domain names of multiple addresses.""" | ||
self.test_partner.write( | ||
{"email": "[email protected],[email protected]"} | ||
) | ||
self.assertEqual( | ||
self.test_partner.email, u"[email protected],othergood@éxample.com" | ||
self.test_partner.email, "[email protected],othergood@éxample.com" | ||
) | ||
|
||
def test_email_local_normalization(self): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters