• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OCA / server-tools / 5744
79%
9.0: 86%

Build:
Build:
LAST BUILD BRANCH: 13_add_base_changeset
DEFAULT BRANCH: 9.0
Ran 13 Jun 2018 08:34AM UTC
Jobs 8
Files 155
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5744

push

travis-ci

web-flow
[REF] auth_signup_verify_email: Skip mail send in tests and use email_validator (#1247)

This addon introduced an integration conflict when tested in a database that had `mail_tracking_mass_mailing` installed, producing this failure:

    Traceback (most recent call last):
    File "/opt/odoo/auto/addons/auth_signup_verify_email/controllers/main.py", line 44, in passwordless_signup
        sudo_users.reset_password(values.get("login"))
    File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
        self.gen.next()
    File "/opt/odoo/custom/src/odoo/odoo/sql_db.py", line 419, in savepoint
        self.execute('RELEASE SAVEPOINT "%s"' % name)
    File "/opt/odoo/custom/src/odoo/odoo/sql_db.py", line 154, in wrapper
        return f(self, *args, **kwargs)
    File "/opt/odoo/custom/src/odoo/odoo/sql_db.py", line 231, in execute
        res = self._obj.execute(query, params)
    InternalError: no such savepoint

Which in turn produced the following in the next test:

    InternalError: current transaction is aborted, commands ignored until end of transaction block

The problem comes from the fact that one cannot rollback to a nested savepoint if the parent savepoint was released. It became a problem because that's the strategy that both this addon and upstream's `TestCursor` follow.

To avoid that, tests now mock the `send_mail` method. This results also in having a predictable outcome from the test `test_good_email`, so it is more meaningful now.

Besides, previously we were using the `validate_email` package, which is currently a dead project that can silently fail under certain environments, as seen in https://github.com/syrusakbary/validate_email/pull/80.

There's the `email_validator` package, freely available, supported, and it provides a human-readable error message whenever some format from the email fails.

As such, here I'm switching the dependency, while still adding a backwards compatibility layer for pree... (continued)

6 of 6 new or added lines in 1 file covered. (100.0%)

4661 of 5684 relevant lines covered (82.0%)

1.72 hits per line

Jobs
ID Job ID Ran Files Coverage
3 5744.3 (TESTS="1" ODOO_REPO="odoo/odoo" EXCLUDE="database_cleanup,auth_session_timeout,auth_brute_force") 13 Jun 2018 08:36AM UTC 0
76.99
Travis Job 5744.3
4 5744.4 (TESTS="1" ODOO_REPO="OCA/OCB" EXCLUDE="database_cleanup,auth_session_timeout,auth_brute_force") 13 Jun 2018 08:38AM UTC 0
76.99
Travis Job 5744.4
5 5744.5 (TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="database_cleanup") 13 Jun 2018 08:34AM UTC 0
78.48
Travis Job 5744.5
6 5744.6 (TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="database_cleanup") 13 Jun 2018 08:34AM UTC 0
78.48
Travis Job 5744.6
7 5744.7 (TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="auth_session_timeout") 13 Jun 2018 08:36AM UTC 0
88.41
Travis Job 5744.7
8 5744.8 (TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="auth_session_timeout") 13 Jun 2018 08:35AM UTC 0
88.41
Travis Job 5744.8
9 5744.9 (TESTS="1" ODOO_REPO="odoo/odoo" INCLUDE="auth_brute_force") 13 Jun 2018 08:36AM UTC 0
90.34
Travis Job 5744.9
10 5744.10 (TESTS="1" ODOO_REPO="OCA/OCB" INCLUDE="auth_brute_force") 13 Jun 2018 08:37AM UTC 0
90.34
Travis Job 5744.10
Source Files on build 5744
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5744
  • 386fb312 on github
  • Prev Build on 10.0 (#5743)
  • Next Build on 10.0 (#5749)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc