summaryrefslogtreecommitdiff
path: root/addons/web/tests/test_serving_base.py
diff options
context:
space:
mode:
authorfwi-odoo <fwi@odoo.com>2016-07-20 15:00:17 +0200
committerThibault Delavallée <tde@openerp.com>2016-08-03 13:42:00 +0200
commit7d487c00a679980b96409e261322f93ba3e340f2 (patch)
tree4a017a46ec06c40f4d8185ef7ae09f9108c4aaed /addons/web/tests/test_serving_base.py
parent1feae7447f82c68934baacb7bef0c0c358038e8b (diff)
[IMP] web: remove void file, replace openerp tags, add license, clean imports
Diffstat (limited to 'addons/web/tests/test_serving_base.py')
-rw-r--r--addons/web/tests/test_serving_base.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/web/tests/test_serving_base.py b/addons/web/tests/test_serving_base.py
index e9689fcb1e3..ebbc4dfac62 100644
--- a/addons/web/tests/test_serving_base.py
+++ b/addons/web/tests/test_serving_base.py
@@ -1,18 +1,22 @@
# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
import random
import unittest
-from openerp.tools import topological_sort
+from odoo.tools import topological_sort
+
def sample(population):
return random.sample(
population,
random.randint(0, min(len(population), 5)))
+
class TestModulesLoading(unittest.TestCase):
def setUp(self):
self.mods = map(str, range(1000))
+
def test_topological_sort(self):
random.shuffle(self.mods)
modules = [