[IMP] uninstall: typos

bzr revid: vmt@openerp.com-20120620100705-p9o5kktmj8zkbshm
This commit is contained in:
Vo Minh Thu 2012-06-20 12:07:05 +02:00
parent 575e234cd4
commit 5edca89903
2 changed files with 6 additions and 13 deletions

View File

@ -348,9 +348,9 @@ CREATE TABLE ir_model_data (
);
-- Records foreign keys and constraints installed by a module (so they can be
-- removed them when the module is uninstalled):
-- - for a foreign key: type 'f',
-- - for a constraint: type 'u'.
-- removed when the module is uninstalled):
-- - for a foreign key: type is 'f',
-- - for a constraint: type is 'u' (this is the convention PostgreSQL uses).
CREATE TABLE ir_model_constraint (
id serial NOT NULL,
create_uid integer,
@ -366,7 +366,7 @@ CREATE TABLE ir_model_constraint (
);
-- Records relation tables (i.e. implementing many2many) installed by a module
-- (so they can be removed them when the module is uninstalled).
-- (so they can be removed when the module is uninstalled).
CREATE TABLE ir_model_relation (
id serial NOT NULL,
create_uid integer,

View File

@ -1,12 +1,5 @@
# -*- coding: utf-8 -*-
# Run with one of these commands:
# > OPENERP_ADDONS_PATH='../../addons/trunk' OPENERP_PORT=8069 \
# OPENERP_DATABASE=yy PYTHONPATH=. python tests/test_ir_sequence.py
# > OPENERP_ADDONS_PATH='../../addons/trunk' OPENERP_PORT=8069 \
# OPENERP_DATABASE=yy nosetests tests/test_ir_sequence.py
# > OPENERP_ADDONS_PATH='../../../addons/trunk' OPENERP_PORT=8069 \
# OPENERP_DATABASE=yy PYTHONPATH=../:. unit2 test_ir_sequence
# This assume an existing database.
# This assumes an existing but uninitialized database.
import psycopg2
import unittest2
@ -77,7 +70,7 @@ class test_uninstall(unittest2.TestCase):
assert search_registry('ir.model.fields',
[('model', '=', 'test_uninstall.model')])
def test_02_install(self):
def test_02_uninstall(self):
""" Check a few things showing the module is uninstalled. """
uninstall_module('test_uninstall')
assert not get_module('test_uninstall.model')