[IMP] web: remove void file, replace openerp tags, add license, clean imports

This commit is contained in:
fwi-odoo
2016-08-03 13:42:00 +02:00
committed by Thibault Delavallée
parent 1feae7447f
commit 7d487c00a6
12 changed files with 81 additions and 53 deletions
+5 -1
View File
@@ -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 = [