Skip to Content

Contributors

Re: How to test v14 upgrade scripts

> In general, is it possible to test v14 upgrade scripts before OpenUpgrade is

> available for v14?

yes, you don't need OpenUpgrade for that.

We lack a good mechanism to test migration scripts, I'm also not sure how I 
would implement such a thing in general. The specific script looks a bit 
pointless to test to me, but you could mock the openupgradelib calls and call 
the function if you're into coverage.


-- 
Your partner for the hard Odoo problems
https://hunki-enterprises.com

by Holger Brunn - 11:25 - 29 Jan 2021

Reference

  • How to test v14 upgrade scripts
    Hi all,

    we are porting to 14.0 the OCA/l10n-italy modules and developing some upgrade scripts, like this

    Our doubt: is this testable?
    In general, is it possible to test v14 upgrade scripts before OpenUpgrade is available for v14?

    Thanks!

    --

    by Lorenzo Battistini. - 10:06 - 29 Jan 2021