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
474 B

  1. # Copyright 2018 Vauxoo (https://www.vauxoo.com) <info@vauxoo.com>
  2. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  3. from openerp.tests.common import TransactionCase
  4. class TestProfiling(TransactionCase):
  5. def test_profile_creation(self):
  6. """We are testing the creation of a profile."""
  7. prof_obj = self.env['profiler.profile']
  8. profile = prof_obj.create({'name': 'this_profiler'})
  9. profile.enable()
  10. profile.disable()