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.

14 lines
513 B

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