You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
489 B

  1. # © 2016 Therp BV <http://therp.nl>
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  3. from odoo.tests.common import TransactionCase
  4. class TestLetsencrypt(TransactionCase):
  5. def test_letsencrypt(self):
  6. from ..hooks import post_init_hook
  7. post_init_hook(self.cr, None)
  8. self.env.ref('letsencrypt.config_parameter_reload').write({
  9. 'value': '',
  10. })
  11. self.env['letsencrypt'].with_context(letsencrypt_dry_run=True).cron()